Website:Amavis Ldap

From UGCS
Jump to: navigation, search

Amavis and Ldap

Although UGCS spam filtering blocks many spam messages (over 50,000 a day!), an email has to have a pretty high "spam score" before we drop it. If you want some tighter filtering, you can set your own settings using LDAP using ldapedit.

You can use the ldapedit utility to change your SpamAssassin settings. The most common settings are:

  • amavisSpamTag2Level- Above this score, Amavis will add "***SPAM***" to the message's header
  • amavisSpamKillLevel- Above this score, Amavis will block the message as spam.

Spam scores are numbers- although they can technically have any value, most email is between -20 and +20. By default, UGCS drops spam with a score higher than 6.0 If you want to know the score of some of the mail in your inbox for reference, look for the "X-Spam-Score" header. As a side note, I've never seen legitimate mail with a spam score greater than 1.0

Examples

  • Mark email with spam score above 0.0 with "***SPAM***" in the subject line, and discard mail with a spam score more than 4.0:
ldapedit -m amavisSpamTag2Level 0.0 -m amavisSpamKillLevel 4.0

Mailing list configuration

You can set the spam kill level for a mailing list by using the mailman command. Run

mailman set_spam <listname> <kill level>
Personal tools