<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.qmailtoaster.org:80/index.php?action=history&amp;feed=atom&amp;title=Colorfull_QMail_Logging</id>
	<title>Colorfull QMail Logging - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.qmailtoaster.org:80/index.php?action=history&amp;feed=atom&amp;title=Colorfull_QMail_Logging"/>
	<link rel="alternate" type="text/html" href="http://wiki.qmailtoaster.org:80/index.php?title=Colorfull_QMail_Logging&amp;action=history"/>
	<updated>2026-04-29T11:00:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>http://wiki.qmailtoaster.org:80/index.php?title=Colorfull_QMail_Logging&amp;diff=154&amp;oldid=prev</id>
		<title>Ebroch: Created page with &quot;Info from AM (agmsoft@gmail.com) to displaying your Qmail log in color  Add this line on your /etc/multitail.conf, if not exist create it.   # QMT COLORS  # QMT: clamd  colorscheme:clamd  cs_re:blue:^....-..-.. ..:..:..  cs_re:magenta::  cs_re:green:/var/qmail/simscan/.*(: OK)  cs_re:red:/var/qmail/simscan/.*(: [^ ]* FOUND)  cs_re:yellow:/var/qmail/simscan/.*( ERROR)  #  # QMT: qmail-smtp  colorscheme:qmail-smtp  cs_re:cyan::  cs_re:blue:^....-..-.. ..:..:..  cs_re:magen...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.qmailtoaster.org:80/index.php?title=Colorfull_QMail_Logging&amp;diff=154&amp;oldid=prev"/>
		<updated>2024-03-16T16:49:23Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Info from AM (agmsoft@gmail.com) to displaying your Qmail log in color  Add this line on your /etc/multitail.conf, if not exist create it.   # QMT COLORS  # QMT: clamd  colorscheme:clamd  cs_re:blue:^....-..-.. ..:..:..  cs_re:magenta::  cs_re:green:/var/qmail/simscan/.*(: OK)  cs_re:red:/var/qmail/simscan/.*(: [^ ]* FOUND)  cs_re:yellow:/var/qmail/simscan/.*( ERROR)  #  # QMT: qmail-smtp  colorscheme:qmail-smtp  cs_re:cyan::  cs_re:blue:^....-..-.. ..:..:..  cs_re:magen...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Info from AM (agmsoft@gmail.com) to displaying your Qmail log in color&lt;br /&gt;
&lt;br /&gt;
Add this line on your /etc/multitail.conf, if not exist create it.&lt;br /&gt;
&lt;br /&gt;
 # QMT COLORS&lt;br /&gt;
 # QMT: clamd&lt;br /&gt;
 colorscheme:clamd&lt;br /&gt;
 cs_re:blue:^....-..-.. ..:..:..&lt;br /&gt;
 cs_re:magenta::&lt;br /&gt;
 cs_re:green:/var/qmail/simscan/.*(: OK)&lt;br /&gt;
 cs_re:red:/var/qmail/simscan/.*(: [^ ]* FOUND)&lt;br /&gt;
 cs_re:yellow:/var/qmail/simscan/.*( ERROR)&lt;br /&gt;
 #&lt;br /&gt;
 # QMT: qmail-smtp&lt;br /&gt;
 colorscheme:qmail-smtp&lt;br /&gt;
 cs_re:cyan::&lt;br /&gt;
 cs_re:blue:^....-..-.. ..:..:..&lt;br /&gt;
 cs_re:magenta,,bold:&amp;lt;=&lt;br /&gt;
 cs_re:magenta,,bold:=&amp;gt;&lt;br /&gt;
 cs_re:green,,bold:=&amp;gt; *[^ ]*&lt;br /&gt;
 cs_re:green:&amp;lt;= *[^ ]*&lt;br /&gt;
 cs_re:green,,bold:=&amp;gt; *[^ ]* &amp;lt;[^&amp;gt;]*&amp;gt;&lt;br /&gt;
 cs_re:green:&amp;lt;= *[^ ]* &amp;lt;[^&amp;gt;]*&amp;gt;&lt;br /&gt;
 cs_re:yellow:H=[^ ]*&lt;br /&gt;
 cs_re:red:verify failed for SMTP recipient.*&lt;br /&gt;
 cs_re:red: *[^ ]* \[[0-9\.:]*\]: Connection refused&lt;br /&gt;
 cs_re_val_bigger:magenta,,bold:5:&amp;#039;(&amp;#039;(-|)([0-9]|)([0-9]).([0-9]|)([0-9])&amp;#039;/&amp;#039;11.00&amp;#039;)&amp;#039;&lt;br /&gt;
 cs_re:red,,bold: *[^ ]*SPAM REJECT ([^ ]*).*&lt;br /&gt;
 cs_re:red,,bold: *[^ ]*:VIRUS:.*&lt;br /&gt;
 cs_re:red,,bold: *[^ ]*:ATTACH:.*&lt;br /&gt;
 cs_re:red,,bold: *[^ ]*policy_check: policy_load failed&lt;br /&gt;
 cs_re:white,,bold: *[^ ]*RELAYCLIENT:([^ ]*).*&lt;br /&gt;
 cs_re:white,,bold: *[^ ]*CLEAN ([^ ]*).*&lt;br /&gt;
 cs_re:white,,bold: *[^ ]*policy_check: policy allows([^ ]*).*&lt;br /&gt;
 cs_re:yellow: *[^ ]*CHKUSER rejected rcpt: ([^ ]*).*&lt;br /&gt;
 cs_re:yellow,,bold: *[^ ]*policy_check: policy forbid([^ ]*).*&lt;br /&gt;
 cs_re:magenta,,bold:rblsmtpd: ([0-9\.]*)&lt;br /&gt;
 cs_re:magenta,,bold:qmail-smtpd.*&lt;br /&gt;
 cs_re:magenta,,bold:spf-reject.*&lt;br /&gt;
 cs_re:magenta: *[^ ]*CHKUSER rejected intrusion: ([^ ]*).*&lt;br /&gt;
 cs_re:magenta: *[^ ]*CHKUSER rejected relaying: ([^ ]*).*&lt;br /&gt;
 #&lt;br /&gt;
 # QMT: qmail-send&lt;br /&gt;
 colorscheme:qmail-send&lt;br /&gt;
 cs_re:cyan::&lt;br /&gt;
 cs_re:blue:^....-..-.. ..:..:..&lt;br /&gt;
 cs_re:white,,bold:delivery *[^ ]*: success:.*&lt;br /&gt;
 cs_re:red,,bold:delivery *[^ ]*: failure:.*&lt;br /&gt;
 cs_re:yellow,,bold:delivery *[^ ]*: deferral:.*&lt;br /&gt;
 #&lt;br /&gt;
 # QMT: SpamAssassin&lt;br /&gt;
 colorscheme:qmtspamassassin&lt;br /&gt;
 cs_re:magenta::&lt;br /&gt;
 cs_re:blue:^....-..-.. ..:..:..&lt;br /&gt;
 cs_re:yellow:autolearn=failed&lt;br /&gt;
 cs_re:red,,blink:server killed by [^,]*, shutting down&lt;br /&gt;
 cs_re_s:yellow,,bold:identified spam ([^ ]*) for ([^ ]*) in ([^ ]*) seconds, ([^ ]*) bytes.&lt;br /&gt;
 cs_re_s:cyan,,bold:clean message ([^ ]*) for ([^ ]*) in ([^ ]*) seconds, ([^ ]*) bytes.&lt;br /&gt;
 cs_re:yellow:identified spam [^ ]* for [^ ]* in [^ ]* seconds, [^ ]* bytes.&lt;br /&gt;
 cs_re_s:yellow,,bold:result: Y ([^ ]*) .*&lt;br /&gt;
 cs_re_s:green,,bold:server successfully spawned child process, pid (.*)&lt;br /&gt;
 cs_re:green:server successfully spawned child process, pid&lt;br /&gt;
 cs_re:white,,bold:processing message.*&lt;br /&gt;
 #&lt;br /&gt;
 # QMT: sophie&lt;br /&gt;
 colorscheme:sophie&lt;br /&gt;
 cs_re:cyan::&lt;br /&gt;
 cs_re:blue:^....-..-.. ..:..:..&lt;br /&gt;
 cs_re:white,,bold:NOTICE *[^ ]*:.*&lt;br /&gt;
 cs_re:red,,bold:Virus present.*&lt;br /&gt;
 cs_re:red,,bold:WARNING *[^ ]*: Scan result =.*&lt;br /&gt;
 cs_re:yellow,,bold:WARNING *[^ ]*: error:.* &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and this is how I call multitail: (or you can create a bash script with below code in it)&lt;br /&gt;
&lt;br /&gt;
Using tail:&lt;br /&gt;
&lt;br /&gt;
 multitail -Z red,black,inverse -T -S -x &amp;quot;%m %u@%h %f (%t) [%l]&amp;quot; \&lt;br /&gt;
    -m 0 -n 49 -cS qmail-send -l &amp;quot;tail -F -q -c 512000 /var/log/qmail/send/current | tai64nlocal&amp;quot; \&lt;br /&gt;
    -m 0 -n 49 -cS qmail-smtp -em &amp;quot;policy_check&amp;quot; -em &amp;quot;CHKUSER&amp;quot; -em &amp;quot;simscan&amp;quot; -em &amp;quot;rblsmtpd:&amp;quot; -em &amp;quot;qmail-smtpd: qq hard reject&amp;quot; -l &amp;quot;tail -F -q -c 1048000 /var/log/qmail/smtp/current | tai64nlocal&amp;quot; \&lt;br /&gt;
    -m 0 -n 49 -cS qmail-smtp -em &amp;quot;policy_check&amp;quot; -em &amp;quot;CHKUSER&amp;quot; -em &amp;quot;simscan&amp;quot; -em &amp;quot;rblsmtpd:&amp;quot; -em &amp;quot;qmail-smtpd: qq hard reject&amp;quot; -l &amp;quot;tail -F -q -c 1048000 /var/log/qmail/submission/current | tai64nlocal&amp;quot; \&lt;br /&gt;
    -m 0 -n 49 -cS qmtspamassassin -ev &amp;quot;prefork&amp;quot; -ev &amp;quot;(connection from localhost)&amp;quot; -l &amp;quot;tail -F -q -c 512000 /var/log/qmail/spamd/current | tai64nlocal&amp;quot; \&lt;br /&gt;
    -m 0 -n 49 -cS clamd -l &amp;quot;tail -F -q -c 512000 /var/log/qmail/clamd/current | tai64nlocal&amp;quot; \&lt;br /&gt;
    -m 0 -n 49 -cS sophie -l &amp;quot;tail -F -q -c 512000 /var/log/qmail/sophie/current | tai64nlocal&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Using qmlog (you must have QTP installed)&lt;br /&gt;
&lt;br /&gt;
 multitail -Z red,black,inverse -T -S -x &amp;quot;%m %u@%h %f (%t) [%l]&amp;quot; \&lt;br /&gt;
    -m 0 -n 49 -cS qmail-send -l &amp;quot;qmlog -f send&amp;quot; \&lt;br /&gt;
    -m 0 -n 49 -cS qmail-smtp -em &amp;quot;policy_check&amp;quot; -em &amp;quot;CHKUSER&amp;quot; -em &amp;quot;simscan&amp;quot; -em &amp;quot;rblsmtpd:&amp;quot; -em &amp;quot;qmail-smtpd: &amp;quot; -l &amp;quot;qmlog -f smtp&amp;quot; \&lt;br /&gt;
    -m 0 -n 49 -cS qmail-smtp -em &amp;quot;policy_check&amp;quot; -em &amp;quot;CHKUSER&amp;quot; -em &amp;quot;simscan&amp;quot; -em &amp;quot;rblsmtpd:&amp;quot; -em &amp;quot;qmail-smtpd: &amp;quot; -em &amp;quot;spf-reject&amp;quot; -l &amp;quot;qmlog -f submission&amp;quot; \&lt;br /&gt;
    -m 0 -n 49 -cS qmtspamassassin -ev &amp;quot;prefork&amp;quot; -ev &amp;quot;(connection from localhost)&amp;quot; -l &amp;quot;qmlog -f spamd&amp;quot; \&lt;br /&gt;
    -m 0 -n 49 -cS clamd -l &amp;quot;qmlog -f clamd&amp;quot; \&lt;br /&gt;
    -m 0 -n 49 -cS sophie -l &amp;quot;qmlog -f sophie&amp;quot;&lt;br /&gt;
&lt;br /&gt;
A simple script to display smtpd and spamd &lt;br /&gt;
&lt;br /&gt;
 multitail -s 2 -M 5000 -Z red,black,inverse -T -S -x &amp;quot;%m %u@%h %f (%t) [%l]&amp;quot; \&lt;br /&gt;
    -m 0 -n 49 -cS qmail-smtp -em &amp;quot;policy_check&amp;quot; -em &amp;quot;CHKUSER&amp;quot; -em &amp;quot;simscan&amp;quot; -em &amp;quot;rblsmtpd:&amp;quot; -em &amp;quot;qmail-smtpd: &amp;quot; -l &amp;quot;qmlog -f smtp&amp;quot; \&lt;br /&gt;
    -m 0 -n 49 -cS qmtspamassassin -ev &amp;quot;prefork&amp;quot; -ev &amp;quot;(connection from localhost)&amp;quot; -l &amp;quot;qmlog -f spamd&amp;quot;&lt;/div&gt;</summary>
		<author><name>Ebroch</name></author>
	</entry>
</feed>