Re: [exim] Help with Data ACL

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Odhiambo Washington
Date:  
À: exim users
Sujet: Re: [exim] Help with Data ACL
On 25 October 2016 at 19:26, Daryl Richards <daryl@???> wrote:

> On 24/10/2016 8:42 PM, thunder@??? wrote:
>
>> Hi Guys,
>>
>> I am wondering if someone could help me with a quick fix here. My server
>> is being bombarded with spam. I've looked at the type of mail coming in and
>> its all random IP's, bogus email addresses, but, I found something
>> consistent with all of the mail, all of them have this set in the envelope:
>>
>> Reply-To: HR manager <cointreerichard@???>
>>
>> The consistent part is "HR manager".
>>
>> Could anyone give me an example ACL that will deny the mail if the reply
>> address contains 'HR manager' (case insensitive match).
>>
>> Kind Regards,
>> Alex.
>>
>>
> condition = ${if match{$h_subject:}{(?i)hr manager}{yes}{no}}
>
>

Daryl,

Why are you looking for the string in the $h_subject? Maybe he should try

condition = ${if match{*$h_reply-to:*}{(?i)hr manager}{yes}{no}}


--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft."