Auteur: Renaud Allard Date: À: Nick Nelson CC: exim-users Sujet: Re: [exim] Exim recipe to accept mail from $domain only if it comes
from $ip
Nick Nelson wrote: > Unfortunately this blocked all outgoing mail from palay.org as well.
>
If you put palay.org in /etc/protecteddomains and you didn't put their
IPs in /etc/allowedips, this is somewhat normal.
> On 2/21/07, Renaud Allard <renaud@???> wrote:
>>
>>
>> Nick Nelson wrote:
>>> There's certain domains where all mail would be relayed through another
>>> host, for these domains I do not want to accept mail from any IP that
>> isn't
>>> listed in /etc/allowedips, the domains that relay through this host are
>>> listed in /etc/protecteddomains.
>>>
>>> Can anyone provide some insight on this?
>> This ACL should work:
>> deny
>> sender_domains = lsearch;/etc/protecteddomains
>>
>> !condition = ${lookup{$sender_host_address}lsearch{/etc/allowedips}
>> {yes}{no}}
>>
>> log_message = $sender_host_address is not allowed to send mail from
>> $sender_address_domain
>>
>> message = $sender_host_address is not allowed to send mail from
>> $sender_address_domain
>>
>>