Logging headers and report in syslog

Julian Field mailscanner at ecs.soton.ac.uk
Sun Apr 13 21:07:52 IST 2003


At 20:49 13/04/2003, you wrote:
>Hi,
>
>For all Spam or virus infected messages I would like to be able to log the To:
>From: and Subject: headers, message size and spam or virus report.
>Could anyone point me to the best place in the code to do this or indeed
>supply
>a patch :-) I'm running MailScanner-4.14-9, SpamAssasin-2.53 and kaspersky AV.
>
>It would be fantastic to be able to have this info' recorded for virus
>infected
>messages and Spam.

Take a look at the SQL logging code in CustomConfig.pm. Should give you a
good starting point, you can easily modify it to output to text files
instead of a database if that's what you want.

But you might want to consider outputting to a database, as you need to
remember that there are multiple MailScanner processes, all wanting to log
at the same time.

>I would like to be able to produce reports from the logs of the form:
>
>Problem: Spam/Virus
>From: chh at iii.com
>To: me at tyuytu.gg.com
>Size: 3000
>Report: Spam score ddd RED_COLOUR .... / EICAR test file ...
>
>Regards, Chris.

--
Julian Field
www.MailScanner.info
Professional Support Services at www.MailScanner.biz
MailScanner thanks transtec Computers for their support



More information about the MailScanner mailing list