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: Dan Pritts <address@concealed>
  • Cc: address@concealed
  • Subject: Re: [sympa-users] Sympa Anti-Spam
  • Date: Mon, 28 Mar 2011 11:38:57 +0200 (SAST)

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




Archive powered by MHonArc 2.6.19+.

Top of Page