On Tue, 2010-02-02 at 05:13 -0800, Daniel R. wrote: > Hi All, > we get a lot of Spam with some bad Words in the Display name of the sender. > With the blacklist_from command it is possible to filter by email-address, > but what is the right notation for filtering the display name of the sender? > > can you please helb me? > At present you can only match strings in the From: header, so add a local rule in /etc/mail/spamassassin/local.cf something like this:
describe XX_BADWORDS Bad words in the sender name header XX_BADWORDS From =~ /bad words pattern/i score XX_BADWORDS 5.0 See http://wiki.apache.org/spamassassin/WritingRules for a fuller explanation. Martin