There are certain domains on my server that I do not want MailScanner to scan AT ALL, regardless of any default settings in the cPanel or WHM front-end. How do I set this up?

1. Create a file in /usr/mailscanner/etc/rules/ called scan.messages.rules

2. Put the following in that file and save the file:

FromOrTo:  *@domain.com  no
FromOrTo:  default   yes

Add a line like the domain.com line above for any other domains you do NOT want to have ANY scanning - this includes virus, spam, phishing, dangerous html, and file attachment scanning.

If you want to whitelist incoming mail from a particular domain, you can use a line like this:

From:  *@domain.com  no

3. Go to WHM > MailScanner > MailScanner Configuration and set "Scan Messages = " to "%rules-dir%/scan.messages.rules" (without the quotes) and click Change.

Please note that the settings in WHM > MailScanner > MailScanner Front-End > Advanced Settings (Default for spam scanning, Default actions for high and low scoring spam, Default for virus scanning, and Default delivery action for virus infected email) will be the default settings for all domains on the server regardless of whether the cPanel front-end is enabled for them or not, except for domains that you have disabled scanning for by following the steps above.

Was this answer helpful?

Related Articles

cPanel MailScanner Install/Upgrade Package

Please read this whole page before downloading the package Through our experience of...

Mailscanner front end

cd /usr/src/rm -fv msfe*wget http://www.configserver.com/free/msfeinstaller.tgz tar -xzf...

How can I get the MailScanner configuration to appear in the Xmail cPanel theme?

Do the following steps: cd /usr/local/cpanel/base/frontend/xmail ln -s ../x/cells/ pico -w...

How can I filter spam by blackhole lists such as spamcop.net?

In WHM > MailScanner > MailScanner Configuration you will find a setting for 'Spam List =...

What does the {Disarmed?} tag mean and can I disable it?

The {Disarmed} tag is added by MailScanner when it has detected and disarmed potentially...