Re: [exim] Using AUTH username in ACL

Pàgina inicial
Delete this message
Reply to this message
Autor: torsten
Data:  
A: peter
CC: Exim Users Mailing List
Assumpte: Re: [exim] Using AUTH username in ACL
Peter,

>> This variable is set to whatever you specify with 'server_set_id' in
>> the authenticator.


That was the missing piece in the puzzle. I had seen the $authenticated_id
variable, but it was always empty!

Regards,
Torsten

> On 08/06/05, torsten@??? <torsten@???> wrote:
>> Hi,
>>
>> I am not sure if this is stupid question, but I could not really figure
>> it
>> out through the documentation.
>>
>> We run a mail server for a number of domains. We also require our users
>> to
>> use SMTP AUTH in order to send emails. We now would like to treat our
>> users different (i.e. apply different ACLs) depending on what domain
>> they
>> do belong to.
>>
>> In other words: I need to use the username (which is in the form of
>> localpart@???) to pick the ACL. I don't want the sender, as this
>> can freely be set by the user. Which variable would I expand in the
>> set_acl_rcpt for example?
>
> "$authenticated_id: When a server successfully authenticates a client
> it may be configured to preserve some of the authentication
> information in the variable $authenticated_id (see chapter 33). For
> example, a user/password authenticator configuration might preserve
> the user name for use in the routers. When a message is submitted
> locally (that is, not over a TCP connection), the value of
> $authenticated_id is the login name of the calling process."
>
> This variable is set to whatever you specify with 'server_set_id' in
> the authenticator.
>
> Peter
>
> --
> Peter Bowyer
> Email: peter@???
> Tel: +44 1296 768003
> VoIP: sip:peter@???
>
> --
> ## List details at http://www.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://www.exim.org/eximwiki/
>