Re: [exim] Exim recipe to accept mail from $domain only if i…

Góra strony
Delete this message
Reply to this message
Autor: Renaud Allard
Data:  
Dla: Nick Nelson
CC: exim-users
Temat: Re: [exim] Exim recipe to accept mail from $domain only if it comes from $ip


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