There are some domains on my server that want virus and spam scanning but do not want any attachments blocked. How can I set this up?

In the /usr/mailscanner/etc/rules/ directory, edit filename.rules.rules and filetype.rules.rules (and the archives.filename.rules.rules and arvhies.filetype.rules.rules if you also want the same rules for scanning within zip archives). Add a line like this for each domain for which you don't want attachments to be scanned:

For filename.rules.rules add:

FromOrTo: /usr/mailscanner/etc/

For filetype.rules.rules add:

FromOrTo: /usr/mailscanner/etc/

The files /usr/mailscanner/etc/ and /usr/mailscanner/etc/ should simply contain the following line:


allow   .       -       -

Make sure that you put tabs and not spaces between the parts of the above line.

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

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