Re: [exim] Need an ACL written

Top Page
Delete this message
Reply to this message
Author: Marc Perkel
Date:  
To: exim-users
CC: exim-users
Subject: Re: [exim] Need an ACL written


exim-users@??? wrote:
> Marc Perkel wrote:
>
>> Here's what I'd like to do. I want to create a list of domains so that
>> if a domain (might use sender, from, or return path) is in my list of
>> domains then the domain part is used to search the received lines to see
>> if that domain is found.
>>
>> This if the from is wellsfargo.com and there is no received lines that
>> has a wellsfargo.com server it will be rejected, if wellsfargo.com is in
>> the list.
>>
>> Trying to find a clean way to do this.
>>
>
> For envelope sender... (untested)
>
> domainlist wazoo_domains = foo.com : bar.com
>
> deny condition  = ${if match_domain{$sender_address_domain}{+wazoo_domains}}
>       !condition = ${if match{$h_received:}{$sender_address_domain}}
>       message    = Envelope sender uses $sender_address_domain but no 
> reference to that in the received headers

>
> Demonstrate having put some effort into figuring out the other two and
> I'll help fix them if they don't work, and/or help combine them into one
> acl.
>
> Mike
>
>


I'm testing it now - seems to be working. Thanks.