Custom filter rules can be defined in /etc/mail/spamassassin/local.cf, for example:
The first string defines the match rule. A regular expression is used in 'header' to check the message's subject.
The second string describes the filter.
And the third string defines how much scores should spamassassin set to the matching message.
You can find more info on writing custom rules for spamassassin in Mail::SpamAssassin::Conf manual page:
Source: http://kb.parallels.com/en/1038
header CUSTOM_SUPERSPAM Subject =~ /.*spam subject.*/i
describe CUSTOM_SUPERSPAM Superspam messages
score CUSTOM_SUPERSPAM 100.0
The first string defines the match rule. A regular expression is used in 'header' to check the message's subject.
The second string describes the filter.
And the third string defines how much scores should spamassassin set to the matching message.
You can find more info on writing custom rules for spamassassin in Mail::SpamAssassin::Conf manual page:
# man Mail::SpamAssassin::Conf
No comments:
Post a Comment