Skip to Content.
Sympa Menu

en - Re: [sympa-users] Sympa Anti-Spam

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Garith Dugmore <address@concealed>
  • To: address@concealed
  • Subject: Re: [sympa-users] Sympa Anti-Spam
  • Date: Tue, 29 Mar 2011 10:11:26 +0200 (SAST)

Hi All,

I've tried 2 different methods. Method 1 is successful and Method 2 not:

Method 1:
=========

--------------------------------------------
# cat /etc/sympa/sympa.conf | grep spam
#spam_status x-spam-status
--------------------------------------------
Note: "spam status" is commented out

--------------------------------------------
# cat /etc/sympa/scenari/send.public
title.gettext public list

match([header->X-Spam-Status],/yes,/) smtp -> editorkey,quiet
true() smtp,dkim,md5,smime -> do_it
--------------------------------------------

Method 2:
=========

--------------------------------------------
# cat /etc/sympa/sympa.conf | grep spam
spam_status x-spam-status
--------------------------------------------

--------------------------------------------
# cat /etc/sympa/scenari/spam_status.x-spam-status
title.gettext test x-spam-status header

match([header->X-Spam-Status],/yes,/) smtp,dkim,smime,md5
-> spam
true() smtp,dkim,md5,smime -> ham
--------------------------------------------

--------------------------------------------
#cat /etc/sympa/scenari/send.public
title.gettext public list

equal([msg->spam_status],'spam') smtp,md5,dkim,smime -> editorkey,quiet
true() smtp,dkim,md5,smime -> do_it
--------------------------------------------

Serge, did I miss something in Method 2?

----- Original Message -----
> From: "Serge Aumont" <address@concealed>
> To: address@concealed
> Sent: Tuesday, 29 March, 2011 6:10:04 AM
> Subject: Re: [sympa-users] Sympa Anti-Spam
> Le 28/03/11 11:38, Garith Dugmore a écrit :
> > Hello,
> >
> > I've tried what was recommended below but I still seem to be missing
> > something.
> >
> > What I have currently:
> >
> > -----------------------------------------------------
> > # cat /etc/sympa/sympa.conf | grep spam
> > spam_status x-spam-status
> > -----------------------------------------------------
> >
> > -----------------------------------------------------
> > # cat /etc/sympa/scenari/spam_status.x-spam-status
> > title.gettext test x-spam-status header
> >
> > match([header->X-Spam-Status],/yes,/) smtp,dkim,smime,md5 -> spam
> > true() smtp,dkim,md5,smime -> ham
> > -----------------------------------------------------
> >
> > After a restart of sympa I see the following in the logs while in
> > debug mode:
> >
> > -----------------------------------------------------
> > Mar 28 11:27:12 list sympa[26299]: debug Scenario::request_action()
> > List::request_action spam_status,smtp,list.XXXX.XX.XX
> > Mar 28 11:27:12 list sympa[26299]: debug2 Scenario::new()
> > Mar 28 11:27:12 list sympa[26299]: debug2
> > Scenario::_parse_scenario() (spam_status, x-spam-status,
> > list.XXXX.XX.XX)
> > Mar 28 11:27:12 list sympa[26299]: debug2 Scenario::new()
> > Mar 28 11:27:12 list sympa[26299]: debug2 Scenario::verify()
> > (match([header->X-Spam-Status],/yes,/))
> > Mar 28 11:27:12 list sympa[26299]: debug3 Scenario::request_action()
> > rule match([header->X-Spam-Status],/yes,/),smtp,spam accepted
> This mean that the spam_status scenario is good it result of setting
> msg→spam_status to 'spam'. So now you need to introduce a rule in the
> send scenario used for your list that test this var
>
> equal([msg->spam_status],'spam') smtp,md5,dkim,smime ->
> editotkey,quiet
>
> Of course you may replace this by the following rule in send scenario
> :
>
> match([header->X-Spam-Status],/yes,/) smtp,md5,dkim,smime ->
> editorkey,quiet
>
>
> I thinkn this rule is missing.
> Serge

--

Garith Dugmore
Senior System Administrator
South African Astronomical Observatory
and Southern African Large Telescope

SAAO Telephone: +27 21 447 0025
Direct Line: +27 21 460 6296
Ext: 4004
SAAO Website: http://www.saao.ac.za
SALT Website: http://www.salt.ac.za
Jabber: address@concealed
MSN: address@concealed
Skype: garith5512





Archive powered by MHonArc 2.6.19+.

Top of Page