Skip to Content.
Sympa Menu

en - Re: [sympa-users] Feature for spam control

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Dan Pritts <address@concealed>
  • To: Ibirisol Fontes Ferreira <address@concealed>
  • Cc: sympa-users <address@concealed>
  • Subject: Re: [sympa-users] Feature for spam control
  • Date: Tue, 14 Feb 2012 13:26:14 -0500

whoops, I sent too quickly.


Dan Pritts
February 14, 2012 1:21 PM We just put spamassassin in the delivery pipeline in the alias file:

lists1-test: "| /usr/bin/spamd | /usr/local/pkg/sympa-6.1b2/bin/queue address@concealed"
lists1-test-request: "| /usr/bin/spamc  | /usr/local/pkg/sympa-6.1b2/bin/queue address@concealed"
[... and so on]

You can set the formatting of this file in /etc/sympa/list_aliases.tt2

(/etc/sympa may be different depending on your installation)


Then, use sympa's scenario files to look for the X-Spam-Level headers and act as you wish.


e.g.:

/etc/sympa/scenari@lists1% cat send.private

title.gettext Drop Spam, allow subscribers/owners/moderators, else bounce to sender

match([header->X-Spam-Level],/\*\*\*\*\*\*\*\*\*\*/)      smtp -> reject,quiet

is_subscriber([listname],[sender])             smtp,smime,md5    -> do_it
is_editor([listname],[sender])                 smtp,smime,md5    -> do_it
is_owner([listname],[sender])                  smtp,smime,md5    -> do_it
true()                           smtp,md5,smime  -> reject(reason='send_subscriber')


--
Dan Pritts, Sr. Systems Engineer
Internet2
office: +1-734-352-4953 | mobile: +1-734-834-7224




Archive powered by MHonArc 2.6.19+.

Top of Page