I saw the SQLBlackWhiteList.pm file in cvs and loved
the idea of updating the white/blacklist via mailwatch.
Took me awhile to figure out how to use it but here is
what I did.
1. Copied SQLBlackWhiteList.pm to:
2. Added line to CustomConfig.pm under MailWatch.pm line:
3. Updated MailScanner.conf:
Is Definitely Not Spam = &SQLWhitelist
Is Definitely Spam = &SQLBlacklist
I then thought it would be nice to have partial IP
matches like in the spam.whitelist.rules (ie 192.168.0.)
I edit the SQLBlackWhiteList.pm file to do this. Apply
the diff to the cvs version (patch -p0 <
SQLBlackWhiteList.pm.diff) and then you can add an
entry in the MailWatch List screen like so:
It should then show below as
Restart MailScanner and you should see all emails
coming from that subnet (Class C) as whitelisted. Yuo
can also blacklist in the same way.
This only matches from addresses. A few tweaks and you
could have it match to addresses and other subnets.
NOTE: Above steps are for rpm installs; change the
directories to the appropriate locations for your system.
Log in to post a comment.