MailScanner.conf

NAME
SYNOPSIS
DESCRIPTION
System Settings
Incoming Work Dir Settings
Quarantine and Archive Settings
Process Incoming Mail
Options specific to Sophos Anti-Virus
Virus scanning and vulnerability testing
Options specific to ClamAV Anti-Virus
Removing/Logging dangerous or potentially offensive content
Attachment filename checking
Reports and responses
Changes to message headers
Notifications back to the senders of blocked messages
Changes to subject line
Changes to the message body
Mail archiving and monitoring
Notices to system administrators
Definitions of virus scanners and spam detectors
Spam detection and spam lists (DNS blocklists)
SpamAssassin
What to do with spam
System logging
Advanced SpamAssassin Settings
Advanced Settings
RULESETS
ATTACHMENT FILENAME RULESET
SEE ALSO

NAME

MailScanner.conf − Main configuration for MailScanner

SYNOPSIS

none

DESCRIPTION

MailScanner is configured using the file MailScanner.conf. The location of this file varies from operating system to operating system:

Linux:

/etc/MailScanner

FreeBSD: /usr/local/etc/MailScanner
Other: /opt/MailScanner/etc

Blank lines are ignored, as are leading and trailing spaces. Comments start at a ’#’ character and extend to the end of the line. All options are expressed in the form

option = value

Many of the options can also be the filename of a ruleset, which can be used to control features depending on the addresses of the message, and/or the IP address where the message came from. You will find some examples of rulesets and an explanation of them in the "rules" directories within the MailScanner installation and in the section "RULESETS" later in this manpage.

The options are best listed in a few categories. This is also the order in which you will find them in the MailScanner.conf file. If this list looks very large then don’t worry, the supplied MailScanner.conf file (or MailScanner.conf.sample) contains sensible defaults for all the values. You will probably only need to change a very few of them to start with.

You should define the following variables:

%report−dir%

Default: /opt/MailScanner/etc/reports/en
Default FreeBSD: /usr/local/share/MailScanner/reports/en

Set the directory containing all the reports in the required language.

%etc−dir%

Default: /opt/MailScanner/etc
Default FreeBSD: /usr/local/etc/MailScanner

Configuration directory containing this file

%rules−dir%

Default: /opt/MailScanner/etc/rules
Default FreeBSD: /usr/local/etc/MailScanner/rules

Rulesets directory containing your ".rules" files

%org−name%

Default: yoursite

Enter a short identifying name for your organisation below, this is used to make the X−MailScanner headers unique for your organisation. Multiple servers within one site should use an identical value here to avoid adding multiple redundant headers where mail has passed through several servers within your organisation.
Note: Some Symantec scanners complain (incorrectly) about "." characters appearing in the names of headers.

System Settings

Max Children

Default: 5

MailScanner uses your server efficiently by running several identical processes at the same time, all processing mail. This is the number of these processes to run at once. Turning this figure will optimise the performance of your system if you process a lot of mail. A good figure to start with is 5 children per CPU. So if you have 4 CPUs in your server, start by setting this to 20.

Run as User

Default: not to change user

Provided for Exim users (and anyone not running sendmail as root), this changes the user under which MailScanner runs.

Run as Group

Default: not to change group

Provided for Exim users (and anyone not running sendmail as root), this changes the group under which MailScanner runs.

Queue Scan Interval

Default: 5

How often (in seconds) should each process check the incoming mail queue for new messages? If you have a quiet mail server, you might want to increase this value so it causes less load on your server, at the cost of slightly increasing the time taken for an average message to be processed.

Incoming Queue Dir

Default: /var/spool/mqueue.in

Directory in which MailScanner should find e−mail messages for scanning. This can be any of the following:

1.

a directory name.

Example: /var/spool/mqueue.in

2.

a wildcard giving directory names.

Example: /var/spool/mqueue.in/*

3.

the name of a fi@