Customizing Spamassin use according to recipients

Alex Broens ms-list at alexb.ch
Wed Oct 1 10:54:27 IST 2008


On 10/1/2008 8:14 AM, ram wrote:
> 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 
dunno if SA ever sees this
SA list is probably the better source of info

otoh, maybe your MTA can add/already adds the envelope rcpt into a 
custom header and you can use that for the rule.


Alex



More information about the MailScanner mailing list