SpamAssassins Customizations

Just wondering how I would go about adding to the default rules.

Like lets say I want to add five hundred points if they subject says “Hi Justin”?

Would I add it to a config file somewhere? Or would I add it to the NodeWorx preferences?

I found the following, but not sure if this is right or where I should put it

header HI_JUSTIN             Subject =~ Hi Justin
score HI_JUSTIN               500
describe HI_JUSTIN           Subject contains 'Hi Justin'

I want to try blocking those new German email things by the subject so I stop getting calls from my clients everyday asking me about it. I am doing NodeWorx level scanning so if I make the score high enough it will just drop them.

Thanks,

Looking at /usr/share/spamassassin it said to edit the /etc/mail/spamassassin/local.cf.

I added the following code to that file:


header HI_JUSTIN             Subject =~ /Hi Justin/
score HI_JUSTIN              10
describe HI_JUSTIN           Subject contains 'Hi Justin'

And it works! Now I just have to figure out all the wildcard stuff for the text.

Like…


header PLING_QUERY              Subject =~ /\?.*!|!.*\?/
describe PLING_QUERY            Subject has exclamation mark and question mark

I found this which is exactly what I needed.

http://weblog.erenkrantz.com/~jerenk/german_spam.cf

I just placed this file in the under the /etc/mail/spamassassin folder.