Marking email as virus using header?

Kevin Miller kevin.miller at
Sat Jun 27 16:46:02 UTC 2015

A quick followup to my previous post – scrolling down a bit further in MailScanner.conf I see a “SpamAssassin Rule Actions” setting.  That may be even easier to work with for what you’re trying to accomplish…

Kevin Miller
Network/email Administrator, CBJ MIS Dept.
155 South Seward Street
Juneau, Alaska 99801
Phone: (907) 586-0242, Fax: (907) 586-4500
Registered Linux User No: 307357

From: MailScanner [mailto:mailscanner-bounces at] On Behalf Of Simon
Sent: Friday, June 26, 2015 7:48 PM
To: mailscanner at
Subject: Marking email as virus using header?

Hi there,

We front our mailscanner servers with fortigate firewalls, and use the AV at the firewall rather than mailscanner (av is turned off on mailscanner). Mailscanner is the latest version, running on Centos 6.6.

What I have been wondering about is if we could pass the email to mailscanner with a custom header (set at the firewall) and have mailscanner mark it as spam.

This would only be for logging purposes, and so that clients can 'see' the av in action and also potentionally let their contacts know if they have been compromised.

Is this possible somehow?

Many thanks,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the MailScanner mailing list