Szerző: Nick Dátum: Címzett: exim-users Tárgy: [exim] exim rewrites the "From:" address
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:
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.