Re: [Exim] relay_match_host_or_sender

Top Pagina
Delete this message
Reply to this message
Auteur: Philip Hazel
Datum:  
Aan: Oren Levi
CC: exim-users
Onderwerp: Re: [Exim] relay_match_host_or_sender
On Mon, 15 Sep 2003, Oren Levi wrote:

> If i do this:
>
>
> authenticated = *
>           senders = {$1}
>           verify = sender

>
> to make sure the user authenticated is the actual sender.
>
> Would this work ?


No, because $1 has no value in that ACL statement. What senders are you
trying to test for? If you just have

  accept authenticated = *
         verify = sender


it will accept if (a) the connection is authenticated AND (b) the sender
address verifies successfully. A "senders" line adds another AND
condition, this time checking for specific senders (by an explicit list,
or lookup, etc.) A "sender_domains" line adds a condition that tests the
sender address domain, so if you wanted to restrict this to your local
domain, you should use

  accept authenticated = *
         sender_domains = your.local.domain
         verify = sender


> Also i was wondering how do u know when the "AND" statements end ?


When the next statement starts (i.e. a line beginning "accept", "deny",
etc.) or the end of the ACLs (a line beginning "begin", or the end of
the file).

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book