Re: [exim] virtual domains, incorrect envelope-from

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Todd Lyons
日付:  
CC: exim-users
題目: Re: [exim] virtual domains, incorrect envelope-from
2010/11/4 Marcin Mirosław <marcin@???>:
>>
>> However, all mail sent by our users through our server ends up with a
>> bad Envelope-From address.
>> Received: from xxx.ri.ri.cox.net ([y.y.y.y] helo=Sprung-Sprocket.local)
>>       by zzz.macrobyte.net with esmtpsa (TLSv1:AES128-SHA:128)
>>       (Exim 4.72)
>>       (envelope-from <"seth@???>)
>> The correct address, of course, is just "seth@???".
>> All relaying requires smtp authentication via either PLAIN, LOGIN, or CRAM-MD5.
>> In the MUA, the users set their smtp user id as "user@???" (so
>> in my case, it's "seth@???").


That's the same configuration that we have, users send their full
email address as the username.

> Hi!
> Try to set:
> accept
>                authenticated   = *
>                control         = submission/sender_retain


...and that's almost exactly what we have:

  accept  authenticated  = *
          control        = submission/sender_retain
          add_header     = X-Authenticated-Sender: ${sender_address}
          set acl_c_authenticated = 1


  deny    condition      = ${if eq {$interface_port}{587} {yes}{no} }
          !authenticated = *
          message        = Relay not permitted, authentication is
required to use submission port


The variable acl_c_authenticated is set for the duration of the
connection, and I use it in my routers. I could have just as easily
done as Mike Cardwell suggested and used $authenticated_id in my
routers:
http://www.mail-archive.com/exim-users@exim.org/msg34626.html
I just tend to use variables to do things, it's where my comfort zone
is. Mike's method uses a perfectly valid, and arguably technically
the best method.

> This is examle, we don't know Your config.


Agreed. To the original op, we probably need to know more about your
config than you've shown us so far.
--
Regards...      Todd
I seek the truth...it is only persistence in self-delusion and
ignorance that does harm.  -- Marcus Aurealius