You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by sp...@fongaboo.com on 2008/01/24 22:46:10 UTC

Particular subject blacklist seems not to work

I am running SpamAssassin version 3.1.7 with Postfix via amavisd on a 
FreeBSD machine.

In the last few weeks, all of a sudden messages with the same 4 or 5 
subject lines started coming through undetected for some reason.

So I decided to add patterns matching those to 
/usr/local/share/spamassassin/60_whitelist_subject.cf

They are in the form of:

blacklist_subject	*<string>*


All of them seemed to work, except for one. I continue to get messages 
with the following Subject header:

:: 86% Cheaper than Original Price: aRolex, Cartier, Omega, Chanel, Tag Heuer,


I had tried adding the following entries:

blacklist_subject       *Cheaper than Original Price*
blacklist_subject       *aRolex*


...but to no avail.


Is there some pattern in that subject line that allows it to come through 
unscathed?

Thanks,

-FONG



  -------------------------------------------------------------------------
  shot through the heart              ooh baby do you know what that's worth
  and you're to blame                         ooh heaven is a place on earth
  darling you give love                  they say in heaven love comes first
  a bad name                              we'll make heaven a place on earth
  ORBITAL                                                     "Halcyon Live"

Re: Particular subject blacklist seems not to work

Posted by Matt Kettler <mk...@verizon.net>.
spamassassin@fongaboo.com wrote:
>
> I am running SpamAssassin version 3.1.7 with Postfix via amavisd on a 
> FreeBSD machine.
>
> In the last few weeks, all of a sudden messages with the same 4 or 5 
> subject lines started coming through undetected for some reason.
>
> So I decided to add patterns matching those to 
> /usr/local/share/spamassassin/60_whitelist_subject.cf
>
> They are in the form of:
>
> blacklist_subject    *<string>*
>
>
> All of them seemed to work, except for one. I continue to get messages 
> with the following Subject header:
>
> :: 86% Cheaper than Original Price: aRolex, Cartier, Omega, Chanel, 
> Tag Heuer,
>
>
> I had tried adding the following entries:
>
> blacklist_subject       *Cheaper than Original Price*
> blacklist_subject       *aRolex*
>
>
> ...but to no avail.
>
>
> Is there some pattern in that subject line that allows it to come 
> through unscathed? 

You might want to look at the message source. I'm not intimately 
familiar with the whitelist subject plugin, but it's possible there's 
some kind of HTML or encoding in the original subject line that your 
email client is translating, but the whitelist_subject plugin isn't...

You might also check for two subject headers in the message.. SA might 
be using one, but your client may be using the other..

Re: Particular subject blacklist seems not to work

Posted by "John D. Hardin" <jh...@impsec.org>.
On Thu, 24 Jan 2008 spamassassin@fongaboo.com wrote:

> I am fairly sure. The other subject lines started getting flagged
> when I added entries for them. And I sent emails from an outside
> account with a subject that matched one of the other patterns and
> it got flagged.
> 
> Is there a more concrete way to determine whether
> 60_whitelist_subject.cf is actually working?

No, that's all I had in mind. If you have other rules where it's 
hitting then the plugin is working.

Are any of those other rules blacklist rules?

Can you create a blacklist test rule and prove that it works?

I'm not familiar with the WhiteListSubject plugin, but wonder about
the match syntax. Everything else uses REs, so try the rules (1)
without the "*" wildcards at all, and (2) with ".*" instead of "*"  
just in case it's not *really* using fileglob syntax... :)

--
 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
-----------------------------------------------------------------------
  Liberals love sex ed because it teaches kids to be safe around their
  sex organs. Conservatives love gun education because it teaches kids
  to be safe around guns. However, both believe that the other's
  education goals lead to dangers too terrible to contemplate.
-----------------------------------------------------------------------
 3 days until Wolfgang Amadeus Mozart's 252nd Birthday


Re: Particular subject blacklist seems not to work

Posted by sp...@fongaboo.com.
I am fairly sure. The other subject lines started getting flagged when I 
added entries for them. And I sent emails from an outside account with a 
subject that matched one of the other patterns and it got flagged.

Is there a more concrete way to determine whether 60_whitelist_subject.cf 
is actually working?

On Thu, 24 Jan 2008, John D. Hardin wrote:

> On Thu, 24 Jan 2008 spamassassin@fongaboo.com wrote:
>
>> In the last few weeks, all of a sudden messages with the same 4 or 5
>> subject lines started coming through undetected for some reason.
>>
>> So I decided to add patterns matching those to
>> /usr/local/share/spamassassin/60_whitelist_subject.cf
>
> Silly question: are you sure that your WhiteListSubject plugin is even
> working in the first place?
>
> --
> 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
> -----------------------------------------------------------------------
>  If Microsoft made hammers, everyone would whine about how poorly
>  screws were designed and about how they are hard to hammer in, and
>  wonder why it takes so long to paint a wall using the hammer.
> -----------------------------------------------------------------------
> 3 days until the 41st anniversary of the loss of Apollo 1
>
>

Re: Particular subject blacklist seems not to work

Posted by "John D. Hardin" <jh...@impsec.org>.
On Thu, 24 Jan 2008 spamassassin@fongaboo.com wrote:

> In the last few weeks, all of a sudden messages with the same 4 or 5 
> subject lines started coming through undetected for some reason.
> 
> So I decided to add patterns matching those to 
> /usr/local/share/spamassassin/60_whitelist_subject.cf

Silly question: are you sure that your WhiteListSubject plugin is even 
working in the first place?

--
 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
-----------------------------------------------------------------------
  If Microsoft made hammers, everyone would whine about how poorly
  screws were designed and about how they are hard to hammer in, and
  wonder why it takes so long to paint a wall using the hammer.
-----------------------------------------------------------------------
 3 days until the 41st anniversary of the loss of Apollo 1