ConfigServer Services HelpDesk
Server Management Services from Way to The Web Ltd
ConfigServer Home Page
Way to the Web Ltd and Configserver.com will be closing down permanently on 31 August 2025.

All the details are available here.


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?

Support Portal  »  Knowledgebase  »  Viewing Article

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

2. Put the below lines in that file and save the file. Replace domain.com with the domain you want to disable scanning for.

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 > Plugins > ConfigServer MailScanner FE > and click the button that says "MailScanner Configuration". Set "Scan Messages = " to "%rules-dir%/scan.messages.rules" (without the quotes) and click Change.

Share via

Related Articles


Self-Hosted Help Desk Software by SupportPal
© ConfigServer Services