Hi,
I'm not sure if I should be posting here or in the front-end forum. If I'm in the wrong place please let me know!
I have used the MailScanner install script - it works great, but I haven't implemented the cpanel front end. This is OK but I'm running into the following problem.
When I manually add an external domain name to spam.whitelist.rules it gets removed by mscpanel.pl:
example.co.uk removed from spam.whitelist.rules
Without using the front end setup is there some way I can configure mscpanel.pl to allow this line to remain in spam.whitelist.rules?
Thanks,
Edward
manually adding domains to spam.whitelist.rules
I've cracked open and had a look at mscpanel.pl - @swr seems to specify all the lines that should be deleted, and if I'm reading it right it looks like any line that doesn't start with To: and a literal asterisk and @ is set to be deleted:
if ($entry !~ /^To:\s\*\@\*/) {push (@swr,$entry)}
This means you can't add custom From: lines for external domains you want to whitelist. Anyone know why this is like this, and how to allow certain lines?
I've seen references to /usr/mscpanel/spam.whitelist.rules, but entries in there just seem to get added to the list of lines to delete?
Thanks
if ($entry !~ /^To:\s\*\@\*/) {push (@swr,$entry)}
This means you can't add custom From: lines for external domains you want to whitelist. Anyone know why this is like this, and how to allow certain lines?
I've seen references to /usr/mscpanel/spam.whitelist.rules, but entries in there just seem to get added to the list of lines to delete?
Thanks
You do have to add a line in the correct format. If you want to whitelist it for the whole server, the correct format would be something like:
To: *@* and From: *@example.com yes
or
To: *@* and From: somebody@example.com yes
If you want to whitelist for a particular domain:
To: *@mydomain.com and From: *@example.com yes
And so on.
/usr/mscpanel/spam.whitelist.rules is only really used when you have the MailScanner Front-End installed - it's where the WHM front-end puts any server-wide whitelisted domains or email addresss, which are then added on a regular basis to the actual rules file in /usr/mailscanner/etc/rules/spam.whitelist.rules.
Regards,
Sarah
To: *@* and From: *@example.com yes
or
To: *@* and From: somebody@example.com yes
If you want to whitelist for a particular domain:
To: *@mydomain.com and From: *@example.com yes
And so on.
/usr/mscpanel/spam.whitelist.rules is only really used when you have the MailScanner Front-End installed - it's where the WHM front-end puts any server-wide whitelisted domains or email addresss, which are then added on a regular basis to the actual rules file in /usr/mailscanner/etc/rules/spam.whitelist.rules.
Regards,
Sarah