On 06/27/2012 03:26 AM, Ganesh wrote:
hi friends,In qmail i like to black list and white list the incoming mail ids using local.cf <http://local.cf/> file. When i add the email ids in local.cf <http://local.cf/> file it's not working can any one help in this problem. Below are my local.cf <http://local.cf/> file. Eg :- vi /etc/mail/spamassassin/local.cf <http://local.cf/> # These values can be overridden by editing ~/.spamassassin/user_prefs.cf <http://user_prefs.cf/> # (see spamassassin(1) for details) # These should be safe assumptions and allow for simple visual sifting # without risking lost emails. ok_locales all skip_rbl_checks 0 required_score 5 report_safe 0 rewrite_header Subject ***SPAM*** use_pyzor 1 use_razor2 1 razor_config /etc/mail/spamassassin/.razor/razor-agent.conf use_auto_whitelist 1 use_bayes 1 use_bayes_rules 1 bayes_auto_learn 1 #Email Ids whitelist_from [email protected] <mailto:[email protected]> whitelist_from *@example.com <http://example.com/> blacklist_from [email protected] <mailto:[email protected]> blacklist_from *@blue.com <http://blue.com/> Regards, Ganesh
Can you be a little more specific about "it's not working"? What are you trying to achieve?
Changing SpamAssassin rules will only change the scoring of messages, which may or may not result in ultimate acceptance or rejection of messages.
If you want to absolutely block sending addresses, I suggest using spamdyke's blacklist_senders file, or perhaps the badmailfrom file. The blacklist_senders file supports one form of wildcard (@), while regexes can be used in the badmailfrom file.
Whitelisting is a different matter. There's no way to absolutely whitelist a sender's address, because clamav can still cause rejections, especially if you use sanesecurity. Spamdyke's various whitelisting files provide a great deal of flexibility in how you approach whitelisting. These only disable spamdyke's filters though, and have no impact on spamassassin's scoring. You can create whitelist entries in the local.cf, but I'm not sure off hand that the format in your local.cf (thanks for including that) is correct or not. Anyone care to confirm this?
You should realize in all this that sender addresses are *very* easy to spoof, and is commonly done by spam software. Whitelisting by sender address should only be used sparingly.
-- -Eric 'shubes' --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
