Scanning SecondaryMX Domains

Discuss our MailScanner install script and MailScanner itself
Post Reply
mikelegg
Junior Member
Posts: 46
Joined: 10 Nov 2007, 03:10

Scanning SecondaryMX Domains

Post 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?
mikelegg
Junior Member
Posts: 46
Joined: 10 Nov 2007, 03:10

Re: Scanning SecondaryMX Domains

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