MailScanner.conf − Main configuration for MailScanner |
none |
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 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 Set the directory containing all the reports in the required language. |
%etc−dir% |
Default: /opt/MailScanner/etc Configuration directory containing this file |
%rules−dir% |
Default: /opt/MailScanner/etc/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. |
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@ |