Part of MRTG died

Mike Wallis mike at UNIXSECURITY.ORG
Tue Jun 25 22:26:43 IST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mike Kercher wrote:

|I can see the spams getting logged in my maillog...it's just that MRTG (or
|my mrtg.cfg) isn't picking them up anymore.  It was working until ONE of my
|upgrades :)
|
|Here is the mail. line from my syslog.conf
|
|# Log all the mail messages in one place.
|mail.*                                                  /var/log/maillog


The spam logging string appears to have changed in 3.20... I noticed it
too, and fixed the script that was parsing the maillog.

Assuming you're using the script that Julian wrote, here's my change to
get it working again:

# MailScanner < 3.20
#      $TotalSpam++        if /message [^\s]+ is spam/i;
# MailScanner >= 3.20
~      $TotalSpam++        if /is spam according to SpamAssassin/i;

- --
Mike Wallis
mw at unixsecurity.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6-2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAj0Y4BIACgkQXes7jE7XvguNYgCgjdrvf4jRsG7ABbglU5czc+9l
MMIAn0k+fX8kmTHAVWqQgJRmZHIXHKGG
=I/cf
-----END PGP SIGNATURE-----



More information about the MailScanner mailing list