virus name in postmaster report

Julian Field mailscanner at
Tue Nov 12 19:15:26 GMT 2002

At 18:35 12/11/2002, you wrote:
>I am from Appalachian State University in Boone, NC (USA) and we are
>currently using the latest 3.x version of Mailscanner.
>We love the product, and are impressed with the time and effort that
>Julian (and others) have obviously put into this.


>I was wondering if there is a way to get the virus name into the subject
>of the email that gets sent to "postmaster" when a virus is detected.

If you send all the postmaster notifications to 1 mailbox, then it's dead
easy to extract them anyway. To get a list of viruses with the number of
each that has been caught, sorted with most common at the top, just use a
script like this:


fgrep '>>>' Mail/Archive/Viruses | \
cut -d\' -f2 | \
sort | \
uniq -c | \
sort -nr

This should work fine for Sophos.

>  Thanks for all your hard work Julian.

No worries.
Julian Field                Teaching Systems Manager
jkf at         Dept. of Electronics & Computer Science
Tel. 023 8059 2817          University of Southampton
                             Southampton SO17 1BJ

More information about the MailScanner mailing list