Mailscanner

MailScanner is a mail security program. Among more, it scans for viruses, phishing, and holds several message content rules. For more information on its features, please visit the website.

This guide will setup to work with a Message transfer agent (MTA) such as Postfix, Sendmail or Exim.

Preparation
You need a working MTA. There are several MTAs around, but one of the most popular one is Postfix.

USE flags
Several USE flags are available:
 * - Enable if you're using Postfix as an MTA
 * - Enable if you're using exim as an MTA
 * - Enable if you want MailScanner to use clamav to scan for viruses
 * - Enable if you want MailScanner to use bitdefender to scan for viruses
 * - Enable if you want MailScanner to use f-prot to scan for viruses
 * - Enable if you want to make MailScanner defend against spam

Installation
Finally, you can emerge MailScanner

Configuration
Now it is time to configure MailScanner.

MailScanner
Mailscanner is configured in and.

A Very Basic configuration (tm):

Note the following variables:
 * - Normally it would be your FQDN Name, without "." or process will stop.
 * - You FQDN Full Name
 * - Your Web Address

Please refer to the mailscanner website for more detailed configuration items.

Postfix
If your MTA is Postfix, modify your Postfix configuration as follows.

Enable a header check hook:

And tell postfix to hold the email:

Now we'll tell MailScanner what to do with incoming email.

Remove postfix from default rc and let MailScanner start postfix.

Sendmail
If you're using sendmail, make the following change in.

Remove sendmail from default rc and let MailScanner start sendmail.

Exim
If your MTA is exim, configuration is pretty straightforward, too.

Remove exim from default rc and let MailScanner start exim.

Clamav
Virus scanning is not enabled by default. Modify the MailScanner configuration to enable it.

SpamAssassian
Anti-spam mechanisms are not enabled by default. Modify the MailScanner configuration to enable it.

Starting MailScanner
This completes the configuration of MailScanner. You can now start MailScanner.

Links back

 * Using MailScanner/Postfix/SpamAssassin/ClamAV in Gentoo Linux on LQWiki