|
Using SpamAssassin with Listserv
The latest upgrade to the Listserv software now allows list owners to filter out spam.
Default Settings
On October 12th, 2005, a change will be made so that all email that is tagged as spam (currently, mail with a spam score of 5 or higher), will be sent to the list owner(s) for moderation. List owners can then decide whether or not they wish to allow the message to be sent to the list (by forwarding the message back to the list) or if the message should be deleted.
This default setting can be changed by the LISTOWNER for each list they own.
Site Settings
The Listserv administrators will be making a change to the site configuration CONTENT_FILTER. This change will take advantage of the X-Headers added by SpamAssassin. Any messages that have
X-Spam-Flag: YES
present will be sent to the list owner(s) for approval rather than sent directly to the list. This will be done with the MODERATE option for the content filter. If the list owner wants the message to be sent to the list they will have to manually forward it to the list.
Individual Lists
List owners will be able to change this behavior if they choose. The following actions are available for CONTENT_FILTER matches:
ALLOW - Allow the message to be delivered
REJECT reason - Return the message to the sender with a reason attached. This option is NOT recommended as SPAM mail is usually sent from a faked or stolen address
DISCARD comment - Delete the message. The comment will be noted in the Listserv system log. The message is NOT recoverable so be very careful if you choose to use this option
MODERATE - Send the message to the list owner for approval. This is the site default and recommended option
In addition, listowners can be more or less agressive on determining what is SPAM based on the X-SPAM-ListServ-Level score. Currently, a score of 5 or more dashes (-) determines the message as SPAM. To be
more agressive, a listowner can use a lower score. To be less aggressive, choose a higher score.
This score is equivalent to the X-Spam-Level: header but the asterisk used in X-Spam-Level is seen as a wildcard by Listserv so it would always match - even a score of 1. If the default setting (where X-Spam-Flag: YES) still allows spam mail through to the list the list owner could set something like
X-Spam-ListServ-Level:--
Action: Moderate
This should take any mail that scores at least a 2 and forward it to the list owner for approval. The Discard action could be used as well but care should be exercised in deleting mail without review as this mail can NOT be recovered.
Modifying CONTENT_FILTER
This is done with the web interface. First connect to the listserv home page (http://listserv.fnal.gov) and select Manage your lists and authenticate if necessary.
Now select the list you want to modify from the pulldown. If you have a large number of lists you may need to use Narrow Selection to search for the list you want to modify.

After you select the list click on Templates

Select the CONTENT_FILTER template

and click on Edit Form

Add the Header and Action lines

and update the template

Once the template has been updated your list will use the new settings.

|