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: Serge Aumont <address@concealed>
  • To: address@concealed
  • Subject: Re: [sympa-users] Sympa Anti-Spam
  • Date: Tue, 29 Mar 2011 06:10:04 +0200

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





Archive powered by MHonArc 2.6.19+.

Top of Page