MailScanner(8) a email virus scanner and spam tagger.


MailScanner [options] [configfile]


This manual page documents briefly the MailScanner options.

This manual page was written for the Debian(TM) distribution because the original program does not have a manual page.

MailScanner is a freely distributable E-Mail gateway virus scanner and spam detector. It uses sendmail or Exim as its basis, and a choice of free/commercial virus scanning engines to do the actual virus scanning. It can decode and scan attachments intended solely for Microsoft Outlook users (MS-TNEF). If possible, it will disinfect infected documents and deliver them automatically. It also has features which protect it against Denial Of Service attacks.


A summary of options is included below.

-h -H -help

Show summary of options.

-v -V -version -Version

Show version of program and the perl libraries used.


Test the configuration and report errors.

-c -C -changed

Show all values in the configuration which differ from the hardcoded defaults.


Run MailScanner in debug-mode. In debug-mode MailScanner doesn't spawn childrens and produce a lot of output. Can be compined with -debug-sa.


Run the spamassassine module inside MailScanner in debug-mode. Warning: This option doesn't stop MailScanner from spawning childrens! Can be compined with -debug.


Name of the option/rule against which the values of -to, -from, -ip or/and -virus are tested.


From-address to test the option/rule specified by -value. Can be any part of a mailaddress.


To-address to test the option/rule specified by -value. Can be used multiple times.


IP-address to test the option/rule specified by -value.


Name of the virus to test the option/rule specified by -value.


MailScanner -debug -debug-sa

Starts MailScanner in full debug-mode.

MailScanner -value="Is Definitely Not Spam" [email protected]

Test if mails from [email protected] are matched by the rule for the option "Is Definitely Not Spam." (aka. whitelist). Output:

Looked up internal option name "spamwhitelist"
With sender = [email protected]
Client IP =
Virus =
Result is "1"
0=No 1=Yes


This manual page was written by Simon Walter [email protected] for the Debian(TM) system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation.

On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.


Simon Walter



Copyright © 2006 Simon Walter