Koozali.org: home of the SME Server

Spamassasin - Whitelist an email subject

Offline henrikmc

  • *
  • 18
  • +0/-0
Spamassasin - Whitelist an email subject
« 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


Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Spamassasin - Whitelist an email subject
« Reply #1 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

Offline henrikmc

  • *
  • 18
  • +0/-0
Re: Spamassasin - Whitelist an email subject
« Reply #2 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