Customizing Spamassin use according to recipients

ram ram at netcore.co.in
Wed Oct 1 07:14:57 IST 2008


On Tue, 2008-09-30 at 18:34 +0200, Alex Broens wrote:
> Apologize for the Subject fauxpas
> Had a dumb key cut on TB's Quicktext
> 
> On 9/30/2008 5:01 PM, ram wrote:
> > I want to evaluate some spamassassin rules only when the mail is marked
> > for some recipients 
> > 
> > Can I do this ? I dont mind changing a little bit of the src if that is
> > required 
> > 
> 
> if "marked" means sent To some recipients:
> 
> 
> With SA:
> 
> header __TO_TESTUSER  ToCC: =~ /(?:testuser1|testuser2)\@example\.com/
> body    __STRING_TO_TEST  /catch me/
> 
> meta    TEST_RULE_TO_USERS12    (____TO_TESTUSER  && __STRING_TO_TEST)
> score    TEST_RULE_TO_USERS12    1.0
> 
> is this what you are looking for?
> 
> Alex
> 


That would match only when header-to matches the envelope recipient. But
I want the actual recipient not the ToCc 


Also I would not mind if a mail is marked to multiple recipients and
rules misfire. That is agreeable in our scenario 








More information about the MailScanner mailing list