Autor: Nick Nelson Data: Para: exim-users Assunto: Re: [exim] Exim recipe to accept mail from $domain only if it comes
from $ip
Unfortunately this blocked all outgoing mail from palay.org as well.
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
>
>