Re: [exim] Using $authenticated_id in router

Pàgina inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
A: Peter Velan
CC: exim-users
Assumpte: Re: [exim] Using $authenticated_id in router
On Wed, 31 May 2006, Peter Velan wrote:

> But, in both cases variable "$authenticated_id is not set:


Tony has identified what is happening. The comment in the code says
this:

/* A locally-supplied message is considered to be coming from a local user   
unless a trusted caller supplies a sender address with -f, or is passing in the
message via SMTP (inetd invocation or otherwise). */                    


> But to get the job done, the question remains: How could I modify
>
> condition = $authenticated
>
> to make this condition true if mail comes from an authenticated user OR
> from a local process?


The trusted user doing local submission must specified the authenticated
address using -oMai.

I am not sure why this has ended up the way it has, but does make some sense.
Trusted callers can inject messages with senders that are not
themselves, so if they do so (using -f or -bs), Exim doesn't
automatically assume a value for $authenticated_id.


-- 
Philip Hazel            University of Cambridge Computing Service
Get the Exim 4 book:    http://www.uit.co.uk/exim-book