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.