Page 1 of 1

Scanning SecondaryMX Domains

Posted: 23 Sep 2010, 06:06
by mikelegg
I'm using one of my cPanel servers as a secondary MX for domains hosted on other servers.

Is there a way of getting MailScanner to scan mail for these domains even though they don't actually have a user account on the server and merely listed in etc/secondarymx?

Re: Scanning SecondaryMX Domains

Posted: 23 Sep 2010, 06:17
by mikelegg
I think I found the answer in one of Chirpy's posts on the cPanel forum ...

MailScanner normally won't scan emails to domains not listed in /etc/localdomains. You could remedy that by changing the MailScanner rule defaults to always scan on the secondary server, i.e.:

/usr/mailscanner/etc/rules/spam.scanning.rules:
FromOrTo: default yes

/usr/mailscanner/etc/rules/virus.scanning.rules:
FromOrTo: default yes

and if you want:

/usr/mailscanner/etc/rules/spamhigh.action.rules:
FromOrTo: default delete

Then reload MailScanner:
service MailScanner reload

http://forums.cpanel.net/f5/redundant-m ... 26000.html