Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: henrikmc on February 17, 2009, 11:50:51 AM

Title: Spamassasin - Whitelist an email subject
Post by: henrikmc on February 17, 2009, 11:50:51 AM
Is it possible to whitelist certain email subjects? Would be usefull for me in some situations instead of whitelisting new email addresses all the time.

Br. Henrik

Title: Re: Spamassasin - Whitelist an email subject
Post by: Stefano on February 17, 2009, 12:34:06 PM
Hi

I think this is not possible via whitelist but only via a custom rule that check for te sbj and give (for example) -50 points..

So, try to google for custom spamassassin rule howtos and syntax

Ciao
Stefano
Title: Re: Spamassasin - Whitelist an email subject
Post by: henrikmc on February 17, 2009, 01:19:41 PM
Hi

I think this is not possible via whitelist but only via a custom rule that check for te sbj and give (for example) -50 points..

So, try to google for custom spamassassin rule howtos and syntax

Ciao
Stefano

yes, i've found this but are unsure if it would work? And should I make a new template fragment?

"To whitelist certain subjects (in this case HELLO), a separate rule with a score of -100 has to be
added in the local.cf file, e.g."

header SUBJ_HELLO Subject =~ /Hello/i
describe SUBJ_HELLO Subject contains "Hello"
score SUBJ_HELLO -100