Re: [exim] Restricting senders by domains?

Top Page
Delete this message
Reply to this message
Author: Oliver von Bueren
Date:  
To: exim-users
Subject: Re: [exim] Restricting senders by domains?
Frank DeChellis wrote:
> Hi,
>
> We are using Exim 4.67.
>
> I have my SMTP restrict to hosts listed in relay_from_hosts, that works
> simply enough.
>
> When I try to restrict senders by domain, I do not seem to have any luck.
>

The order of your accept / deny conditions is important, as they are
used top to bottom.
>   accept  hosts         = +relay_from_hosts
>   deny    message       = relay not permitted
>   accept  domains       = +sender_domains
>   deny    message       = relay not permitted

>
>

Here you accept anything from relay_from_hosts and as the next line deny
everything else. The two following lines won't do anything as no message
gets ever checked against these, they have been denied by then.

Next thing, above that, you've got lines checking against local_domains
and relay_to_domains. Are these entirely different domains? If not, I
could imagine situations where these lines kick in before reaching the
end of the ACL list as well.

Oliver