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: Dan Pritts <address@concealed>
  • To: Garith Dugmore <address@concealed>
  • Cc: address@concealed
  • Subject: Re: [sympa-users] Sympa Anti-Spam
  • Date: Mon, 28 Mar 2011 15:46:54 -0400

I just went back & reviewed the manual & my notes. This wasn't obvious to me
when I first set it up, either, but it's right there in the manual.

I just modified the manual to make this more obvious, i would appreciate it
if you reviewed it. it's a wiki, you can sign up for an account and modify
the wiki.

http://www.sympa.org/manual/antispam

antispam_feature/spam_status just tells sympa how to determine whether a
message is believed to be spam or not, but not what to do with spam messages.

IF a message is moderated for some other reason, then sympa treats spam
messages specially.

if the send scenario for a list would let the message through to the list,
the fact that it is tagged as spam does not change that.

So, to get your desired result, you have to do something with the send
scenario too. If you want to have every spam-tagged message be moderated as
spam, you can modify your send scenarios to have something like:

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

There might be a way to check the sympa spam status in the scenario, that
would be better. anyone know?

On Mar 28, 2011, at 5:38 AM, Garith Dugmore wrote:

> 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
> Mar 28 11:27:12 list sympa[26299]: debug2 List::new() List::new(it,
> list.XXXX.XX.XX, )
> Mar 28 11:27:12 list sympa[26299]: debug2 List::load() List::load(it,
> list.XXXX.XX.XX, )
> -----------------------------------------------------
>
> I also see below these entries that it sends the email to all the
> subscribers. I'd like all spam to be moderated for now. I've tried using
> "editorkey,quiet" but I get the same result.
>
> To test I've used telnet on port 25 and ran something like:
>
> -----------------------------------------------------
> # telnet XXXXXX 25
> Trying XXXXXXX...
> Connected to XXXXXXXX.
> Escape character is '^]'.
> 220 XXXXXXXX ESMTP Postfix
> helo there
> 250 XXXXXXXX
> mail from:<user@XXXXXXXX>
> 250 2.1.0 Ok
> rcpt to:<list@XXXXXXXX>
> 250 2.1.5 Ok
> data
> 354 End data with <CR><LF>.<CR><LF>
> X-Spam-Status: Yes, test
> Subject: Test - ignore
> From:<user@XXXXXXXX>
> To:<list@XXXXXXXX>
> test
>
> .
> 250 2.0.0 Ok: queued as 47F371120CD8
> quit
> 221 2.0.0 Bye
> -----------------------------------------------------
>
> Any pointers will be greatly appreciated.
>
> Cheers,
>
> ----- Original Message -----
>> From: "Dan Pritts" <address@concealed>
>> To: "Garith Dugmore" <address@concealed>
>> Cc: address@concealed
>> Sent: Friday, 18 March, 2011 4:13:36 AM
>> Subject: Re: [sympa-users] Sympa Anti-Spam
>> You need to create a scenario file for
>> spam_status.your_spam_header_here, and then in sympa.conf set the
>> spam_status config line to match your_spam_header_here.
>>
>> Careful on your regular expression. If you are using spamassassin
>> (possibly others), it uses the word baYES in the x-spam-status header.
>> So everything matches "yes". You see what I did below. I submitted a
>> bug on this, David said he would change the default spam_status config
>> file to have a warning about this.
>>
>> Here is what I have:
>>
>> /etc/sympa@lists1% ls -l scenari/spam_status.x-spam-status
>> -r--r--r-- 1 root root 344 Aug 31 2010
>> scenari/spam_status.x-spam-status
>>
>> /etc/sympa@lists1% cat 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
>>
>> /etc/sympa@lists1% grep spam_status *
>> sympa.conf:spam_status x-spam-status
>>
>>
>>
>> On Mar 17, 2011, at 9:46 AM, Garith Dugmore wrote:
>>
>>> Hello fellow Sympa users,
>>>
>>> I'm trying to find more information on the anti-spam functionality
>>> of Sympa.
>>>
>>> It mentions here -> http://www.sympa.org/manual/antispam that:
>>> In version 6.1 a spam_status scenario is introduce not toe define
>>> what to do with a spam message but to qualify message as spam, ham
>>> or unsure. This scenario is selected by the sympa.conf (or
>>> robot.conf) parameter spam_status. This scenario can be used to test
>>> multiple message headers with regexp etc. It return 'ham', 'spam',
>>> 'unsure' or 'undefine'. Then this is the status of the message while
>>> processing it. In scenario this property can tested as
>>> [msg→spam_status] variable. Testing this variable in usefull mainly
>>> in send scenario.
>>>
>>> I've tried setting spam_status with different options in sympa.conf
>>> but I don't seem to get any degree of success. I currently have
>>> installed:
>>> ii sympa 6.1.1~dfsg-2 Modern mailing list manager
>>>
>>> What I'd like at the end of the day is for sympa to either moderate
>>> or block emails with "X-Spam-Status: Yes" in their headers.
>>>
>>> Any quick pointers on how to do this?
>>> Thanks for a great piece of software,
>>> --
>>>
>>> Garith Dugmore
>>> Senior System Administrator
>>> South African Astronomical Observatory
>>> and Southern African Large Telescope
>>>
>>>
>>
>> Dan Pritts, Sr. Systems Engineer
>> Internet2
>> office: +1-734-352-4953 | mobile: +1-734-834-7224
>
> --
>
> Garith Dugmore
> Senior System Administrator
> South African Astronomical Observatory
> and Southern African Large Telescope


danno
--
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