Re: Rules correct ?
On man 22 mar 2010 13:15:36 CET, Ned Slider wrote header__MY_FILTRAGE_FROM_93 From =~ /txxa\.px...@makk\.fi/ header__MY_FILTRAGE_TO_93 To =~ /\...@exxent\.net/ meta MY_FILTRAGE_93 (__MY_FILTRAGE_FROM_93 __MY_FILTRAGE_TO_93) scoreMY_FILTRAGE_93 200 add :addr to From and To From:addr To:addr so it does not match on sender name or recipient name -- xpoint http://www.unicom.com/pw/reply-to-harmful.html
Rules correct ?
Hi i am new in Spamassassin, anyone can say me if this rules are correct ? header MY_FILTRAGE_FROM_93 From =~ /txxa\.px...@makk\.fi/ header MY_FILTRAGE_TO_93 To =~ /exxent\.net/ meta MY_FILTRAGE_93 (MY_FILTRAGE_FROM_93 MY_FILTRAGE_TO_93) score MY_FILTRAGE_93 200 (xx it's my change) i want that a email from txxa.p...@makk.fi to all email of @exxent.net have a +200 in score my synthaxe are correct .? Thanks Stephane
Re: Rules correct ?
Stephane MAGAND wrote: Hi i am new in Spamassassin, anyone can say me if this rules are correct ? header MY_FILTRAGE_FROM_93 From =~ /txxa\.px...@makk\.fi/ header MY_FILTRAGE_TO_93 To =~ /exxent\.net/ meta MY_FILTRAGE_93 (MY_FILTRAGE_FROM_93 MY_FILTRAGE_TO_93) score MY_FILTRAGE_93 200 (xx it's my change) i want that a email from txxa.p...@makk.fi to all email of @exxent.net have a +200 in score my synthaxe are correct .? Thanks Stephane Looks good :) If you add two underscores to the start of the two rules making up the meta rule, then they will be evaluated but not scored otherwise I think both rules would have a default score of 1.0. Also, you should probably add the @ sign to exxent.net. header__MY_FILTRAGE_FROM_93 From =~ /txxa\.px...@makk\.fi/ header__MY_FILTRAGE_TO_93 To =~ /\...@exxent\.net/ meta MY_FILTRAGE_93 (__MY_FILTRAGE_FROM_93 __MY_FILTRAGE_TO_93) scoreMY_FILTRAGE_93 200
Re: Rules correct ?
Ned Slider wrote: Stephane MAGAND wrote: Hi i am new in Spamassassin, anyone can say me if this rules are correct ? header MY_FILTRAGE_FROM_93 From =~ /txxa\.px...@makk\.fi/ header MY_FILTRAGE_TO_93 To =~ /exxent\.net/ meta MY_FILTRAGE_93 (MY_FILTRAGE_FROM_93 MY_FILTRAGE_TO_93) score MY_FILTRAGE_93 200 (xx it's my change) i want that a email from txxa.p...@makk.fi to all email of @exxent.net have a +200 in score my synthaxe are correct .? Thanks Stephane Looks good :) If you add two underscores to the start of the two rules making up the meta rule, then they will be evaluated but not scored otherwise I think both rules would have a default score of 1.0. Also, you should probably add the @ sign to exxent.net. header__MY_FILTRAGE_FROM_93 From =~ /txxa\.px...@makk\.fi/ header__MY_FILTRAGE_TO_93 To =~ /\...@exxent\.net/ meta MY_FILTRAGE_93 (__MY_FILTRAGE_FROM_93 __MY_FILTRAGE_TO_93) scoreMY_FILTRAGE_93 200 Oops, should probably make the rules case-insensitive too: header__MY_FILTRAGE_FROM_93 From =~ /txxa\.px...@makk\.fi/i header__MY_FILTRAGE_TO_93 To =~ /\...@exxent\.net/i meta MY_FILTRAGE_93 (__MY_FILTRAGE_FROM_93 __MY_FILTRAGE_TO_93) scoreMY_FILTRAGE_93 200
Re: Rules correct ?
header__MY_FILTRAGE_TO_93 To =~ /\...@exxent\.net/i This matches if @exxent.net is in the To: header line. It doesn't match all mail sent to recipients at exxent.net-- only mail with their address in the To: header line. Of course this may be exactly what you want to do. Joseph Brennan Columbia University Information Technology
Re: Rules correct ?
On 3/22/2010 9:11 AM, Joseph Brennan wrote: header__MY_FILTRAGE_TO_93 To =~ /\...@exxent\.net/i This matches if @exxent.net is in the To: header line. It doesn't match all mail sent to recipients at exxent.net-- only mail with their address in the To: header line. Of course this may be exactly what you want to do. True, you could change it to ToCc =~ if you wanted to match both To: and Cc: headers. header__MY_FILTRAGE_TO_93 ToCc =~ /\...@exxent\.net/i Not much you can do for BCC'ed mail (or mailing list mail) though. Another thing which might be useful would to be to add the :addr modifier. This will cause it to match the email address part of the header, but not the descriptive text part. However, beware that the :addr modifier limits you to only one address, so it makes ToCc useless. In: j...@irs.govbad...@example.com, :addr will extract the example.com address, not the irs.gov part. This might be overkill, but there are situations where it is useful. header__MY_FILTRAGE_TO_93 To:addr =~ /\...@exxent\.net/i