You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by "Eric A. Hall" <eh...@ehsco.com> on 2007/03/13 19:20:34 UTC
Re: Rule based on X Greylist header
On 3/13/2007 2:40 PM, Arjun Datta wrote:
> when milter-greylist detects a user that has passed SMTP AUTH - it does not
> delay it and adds a header:
>
> X Greylist: Sender succeeded SMTP Authentication, not delayed by
> milter-greylist 0.3
>
> Now, how do I add a rule to spamassassin that assigns a negative score to
> emails (like whitelisting where it adds a score of -100) that are detected
> with that header so that spamass-milter will not scan those emails.
Assuming you mean "X-Greylist" instead of "X Greylist", something like the
following will either work or get you close:
header L_MILTER_GREY X-Greylist =~ /^Sender succeeded SMTP Authentication/
score L_MILTER_GREY -100
put that into a cf file in one of your rules directory
--
Eric A. Hall http://www.ehsco.com/
Internet Core Protocols http://www.oreilly.com/catalog/coreprot/
RE: Rule based on X Greylist header
Posted by Arjun Datta <ar...@greatgulfhomes.com>.
Hi Guys,
Eric: Thank you for your response. I am trying what you suggested. Yes I
did mean X-Greylist and not X Greylist.
Of course after implementing it I also thought of testing what John warned
about below. And indeed milter-greylist does not purge pre existing
X-Greylist headers - I tested that as well. So John, thanks for mentioning
that as well.
I would assume though that Spamassassin would only look at the topmost
X-Greylist header.
If I do get it to work I think I will keep it till I start noticing an
increase in spam due to X-Greylist headers being spoofed.
Regards,
Arjun Datta
Great Gulf Homes / Ashton Woods Homes
416 441 1262 x2822
-----Original Message-----
From: John D. Hardin [mailto:jhardin@impsec.org]
Sent: Wednesday, March 14, 2007 9:57 AM
To: Eric A. Hall
Cc: users@spamassassin.apache.org
Subject: Re: Rule based on X Greylist header
On Tue, 13 Mar 2007, Eric A. Hall wrote:
> Assuming you mean "X-Greylist" instead of "X Greylist", something
> like the following will either work or get you close:
>
> header L_MILTER_GREY X-Greylist =~ /^Sender succeeded SMTP Authentication/
> score L_MILTER_GREY -100
Be aware: unless milter-greylist strips off any preexisting
X-Greylist headers, that solution is ripe for abuse. Spammers could
trivially forge such a header.
--
John Hardin KA7OHZ http://www.impsec.org/~jhardin/
jhardin@impsec.org FALaholic #11174 pgpk -a jhardin@impsec.org
key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
There is no doubt in my mind that millions of lives could have been
saved if the people were not "brainwashed" about gun ownership and
had been well armed. ... Gun haters always want to forget the Warsaw
Ghetto uprising, which is a perfect example of how a ragtag,
half-starved group of Jews took 10 handguns and made asses out of
the Nazis. -- Theodore Haas, Dachau Survivor
-----------------------------------------------------------------------
Today: Albert Einstein's 128th Birthday
Re: Rule based on X Greylist header
Posted by "John D. Hardin" <jh...@impsec.org>.
On Tue, 13 Mar 2007, Eric A. Hall wrote:
> Assuming you mean "X-Greylist" instead of "X Greylist", something
> like the following will either work or get you close:
>
> header L_MILTER_GREY X-Greylist =~ /^Sender succeeded SMTP Authentication/
> score L_MILTER_GREY -100
Be aware: unless milter-greylist strips off any preexisting
X-Greylist headers, that solution is ripe for abuse. Spammers could
trivially forge such a header.
--
John Hardin KA7OHZ http://www.impsec.org/~jhardin/
jhardin@impsec.org FALaholic #11174 pgpk -a jhardin@impsec.org
key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
There is no doubt in my mind that millions of lives could have been
saved if the people were not "brainwashed" about gun ownership and
had been well armed. ... Gun haters always want to forget the Warsaw
Ghetto uprising, which is a perfect example of how a ragtag,
half-starved group of Jews took 10 handguns and made asses out of
the Nazis. -- Theodore Haas, Dachau Survivor
-----------------------------------------------------------------------
Today: Albert Einstein's 128th Birthday