Command disabled: backlink

Pattern Matching

Configuring j-chkmail

Configure it :

/etc/mail/jchkmail/j-chkmail.cf

SPAM_REGEX                         YES
REGEX_FILE                         j-regex
REGEX_MAX_SCORE                    50
SPAM_REGEX_MAX_MSG_SIZE            40000
SPAM_REGEX_MAX_MIME_SIZE           15000
DUMP_FOUND_REGEX                   YES
REGEX_LOG_FILE                     file:j-regex

SPAM_REGEX_MAX_* controls the maximum size of mails to process as soon as spams emails are often less than 40K.

To get more information on actions, have a look here

Configuring Regexp

Edit /etc/mail/jchkmail/j-regex. The syntax is explain in the default file in commentary.

For example, to reject well known words in Subject: field, add the line :

SUBJECT    1000 (c+(1|l|i)+(a|4)+(1|l|i)+s+|v+(1|l|i)+(a|4)+g+r+(a|4)+)

Reread files

After modifying j-regex file, say it to j-chkmail :

$ j-ndc RELOAD TABLES

cf. jndc documentation.

Comments

Filtering bodies (for examples with the same words as infra) is really fast as far as I can see on my mailhost. I use more complex expressions and j-chkmail doesn't overload mailhost as milter-regex does.

doc/spam/pattern_matching.txt · Last modified: 2008/03/11 14:21 by martins
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0