On Fri, 2009-09-11 at 00:51 -0700, franc wrote: > Hello, > > i just installed spamassassin 3.2.4 (running on Perl 5.8.8) with postfix > 2.5.1 on a Ubuntu 8.04. > Now i want to use a personal blacklist an i put into > > /etc/spamassassin/myblacklist.cf > > an put into it: > > blacklist_from mail_f...@spam.tld > blacklist_from ... > > This doesn't work. So i put my personal spamrules into > > /etc/spamassassin/local.cf > > But still it doesn't work after restarting spamassassin. > Where is the real config from spamassassin and how can i check the > configuration? > > Thank you, > regards, franc If it's just vanilla blacklisting you want, you can do this in Postfix at the SMTP level and save the hassle of scanning the mail in the first instance:
To do this, somewhere near the end of your main.cf: header_checks = regexp:/etc/postfix/header_checks File /etc/postfix/header_checks looks like this: /^From:.*whoe...@aol.com/ REJECT sender blacklisted Postfix reload Caveat: currently no way to white list anything you add to header checks - but as you want to blacklist, no big issue there. Bonus: Can easily and quickly blacklist on any header match (use with care) not just the 'from'.