How do I whitelist a server or IP address so emails from it do not get scanned on my server?

1. To whitelist an IP address from spam scanning, add an appropriate line to /usr/mailscanner/etc/rules/spam.whitelist.rules. If you have the MS Front-end installed, add it to WHM > MailScanner > Front-End Settings > Server Spam Whitelist instead.

2. To whitelist an IP address from filename or filetype filtering you can add an appropriate line to the filename and filetype rulesets in /usr/mailscanner/etc/rules/:

filetype.rules.rules:
From:   123.123.123.123     /usr/mailscanner/etc/filetype.no.rules.conf

filename.rules.rules:
From:   123.123.123.123     /usr/mailscanner/etc/filename.no.rules.conf

Whitelisting an IP address from virus scanning is not recommended.

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...

Powered by WHMCompleteSolution