Whitelisting *use with caution*

Users tips and ideas

Moderators: FlorianB, Pascal, bourgeois, mentor

ShaneS
Posts: 8
Joined: Fri Oct 06, 2006 7:57 pm

Whitelisting *use with caution*

Postby ShaneS » Wed Jan 31, 2007 4:10 pm

Oliver has expressed not doing this often, yet many of use do have a need to whitelist some addresses. I personally found it confusing with the multiple area's of spamassassin files and there quantity. However, through searching and reading I thought it would be best to just quote and link as a tip/how to.

So here is what I have seen Oliver post about creating whitelists.

well, you can still tune your spamassassin rules and add your own whitelists.

Rules are located in /usr/mailcleaner/share/spamassassin.
Feel free to add a file, say, 80_mc_local_whitelist.cf that contain that:

Code: Select all

whitelist_from sender@domain
whitelist_from *@smalldomain.com
...etc...

(don't forget to restart the engine for changes to take effect)

You could even place meta rules to get user/domain specific whitelists.
Don't hesitate to check the great SpamAssassin documentation: http://www.spamassassin.org

Quoted from: http://forum.mailcleaner.org/viewtopic.php?t=148
Advise you use this link for rules: http://spamassassin.apache.org/full/3.1.x/doc/Mail_SpamAssassin_Conf.html

You can also use a local.cf file as referenced in the following topic: http://forum.mailcleaner.org/viewtopic.php?t=245
Posted By: suhasingale

Posted: Thu Nov 30, 2006 1:32 pm
Yes. You can add local.cf to "/usr/mailcleaner/share/spamassassin/" and play with the scores or add whitelist blacklist.



Now once you have made the changes you will need to restart the system. Not sure if you need to dumb the config as well, so I have included the lines provided from the following topic: http://forum.mailcleaner.org/viewtopic.php?t=238

Code: Select all

/usr/mailcleaner/bin/dump_mailscanner_config.pl
/usr/mailcleaner/etc/init.d/mailscanner restart


If you follow those topics you should also be able to use this guide for blacklist (same as white listing only a different command) and adjusting your spam scores.

Personal Note: I have compiled this as a preliminary guide/tip. I am going to be doing this myself. I will adjust the tip as needed to ensure it is correct.

Return to “Tips”

Who is online

Users browsing this forum: No registered users and 1 guest