On 2025-04-12 Sander ter Steege via Exim-users <exim-users@lists.exim.org> 
wrote:
> Hi All,

> This is my first post to this list, so if I missed finding this info in a FAQ 
> somewhere, please forgive me.

> I’m configuring a new exim server (4.98 on Almalinux 9) to replace a
> really old one (4.63 on CentOS 5) and I’m running into problems when
> sending mail for authenticated users. 
> I’ve checked if exim knows its local domains using exim -bt and it
> does recognise the local user without any problem.
> However when I try to send an email using a MTA exim adds the value of
> the primary_hostname after the authenticated username even if it
> contains a valid local email address and I’m completely puzzled why it
> would do this.

> So when I try to send an email from u...@example.com it works without
> a problem, but as soon as I try the same using Thunderbird as an MTA
> it changes the from to “u...@examle.com”@primary_hostname.com
[...]

The log in 94dbb769-9cdd-4469-bd8a-d4ed9f218...@sins-it.nl shows that
the From: header is unchanged and a sender header
"u...@examle.com"@primary_hostname.com is added. So I think you are
not talking about the From: header but about the envelope from.

You also said you had enabled submission mode via ACL without domain
setting.

Spec 5.12. says:
| By default, no processing of Sender: header lines is done for messages
| received over TCP/IP [...] However, when a message is received over
| TCP/IP in submission mode, and sender_retain is not specified on the
| submission control, the following processing takes place:
| First, any existing Sender: lines are removed. Then, if the SMTP session
| is authenticated, and $authenticated_id is not empty, a sender address
| is created as follows:
| * If no domain is specified by the submission control, the local part
|   is $authenticated_id and the domain is $qualify_domain.
[...]
| Note: Whenever a Sender: header line is created, the return path for the
| message (the envelope sender address) is changed to be the same address,
| except in the case of submission mode when sender_retain is specified.

If $authenticated_id were u...@examle.com the behavior would match
the docs to the letter.

cu Andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'

-- 
## subscription configuration (requires account):
##   https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
##   exim-users-unsubscr...@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to