Re: [exim] exim rewrites the "From:" address

Top Page
Delete this message
Reply to this message
Author: Nick
Date:  
To: exim-users
Subject: Re: [exim] exim rewrites the "From:" address
A dom, 26-02-2023 às 16:46 +0100, nb via Exim-users escreveu:
> Le 2023-02-25 23:21, Nick via Exim-users a écrit :
> > When I send an email using: mailx -r , specifying the from address
> > in
> > the form name@domain, exim rewrites the domain of the From: address
> > and
> > Sender: address to the first entry in the local_domains list. My
> > server
> > hosts multiple domains, so I need to be able to specify the domain
> > part
> > of the email address.
> >
> > My server uses Debian so the configuration is generated from files
> > exim4.conf.localmacros (where I set: MAIN_FORCE_SENDER to yes) and
> > update-exim4.conf.conf (where I set dc_other_hostnames to the list
> > of domain names on this server). But I checked the generated file
> > /var/lib/exim4/config.autogenerated and it contains:
> >
> >
> > .ifndef MAIN_FORCE_SENDER
> > local_from_check = false
> > local_sender_retain = true
> > untrusted_set_sender = *
> > .endif
> >
> > which according to my understanding of the documentation should
> > make
> > exim leave the from address specified in the command
> > mailx -r name@domain destination
> > unchanged. But on restarting exim and sending an email with mailx -
> > r,
> > it doesn't, it rewrites the domain name.
> >
> > Why is it doing this and how can I stop it?
> >
> >
> > --
> > ## List details at https://lists.exim.org/mailman/listinfo/exim-
> > users
> > ## Exim details at http://www.exim.org/
> > ## Please use the Wiki with this list - http://wiki.exim.org/
>
> Hi,
>
> I've just trie to send an email with mailx -r specifying a from
> adress.
> It works fine.
> Tested on a Debian sid with a from address on a domain different from
> the default one (user root).
> I use exim4-daemon-heavy 4.96-14
>

That doesn't address the question - no-one doubted that Exim 4.xx
is able to preserve the From: address.
The point is, what is it in the config files that makes it rewrite
the From: address; or alternatively, what should be in the config
files to make it preserve the From: address?