Greetings All! I have just (!!! -- after about 4 years ... !!!) that in my Debian Etch setup 'sendmail' is aliased to 'exim4':
ls -l `which sendmail` /usr/sbin/sendmail -> exim4
My mailer (MUA) setup presumes sendmail. I have configured the MUA so that, in the headers for outgoing mail, I have set:
Sender: ted.harding@wlandres
(same as my "From:" and "Reply-To:" addresses). That is how the header appears while the message is still in the "outbox" folder.
However, when I send the mail out, it seems that exim4 changes the "Sender:" address to "ted@deb", "deb" being the name of my machine on my home LAN (as set in /etc/hosts), and "ted" being the user.
As a result, when the mail is received outside my LAN, the receiving host sees the header:
Sender: ted@deb
instead of what I want it to be! This sometimes results in rejection when the receiving host does not recognise the sender domain.
Now, while I know my way round sendmail itself, I find I am disorientated by trying to make out how to customise exim4 configuration. (I've tried reading the man pages).
What I want to do is ensure that exim4 (aliased as 'sendmail') either does not change the "Sender:" header as it is while still in the outbox, or else sets it anyway to
Sender: ted.harding@wlandres.net
And it could also be useful, though not essential, if, should I happen to mail as a different user on the same machine, e.g. "efh", it could preserve the domain and insert the user, e.g.
Sender: efh@wlandres.net
My mind is blank about how to set about configuting exim4, so I need very basic instructions (preferably with outline explanation). Maybe a configuration file (where and how?) change, or a command line option to exim4 (the latter is probably simpler for me, since I can enter such options in my MUA setup).
With thanks! Ted.
------------------------------------------------- E-Mail: (Ted Harding) Ted.Harding@wlandres.net Date: 04-Aug-2012 Time: 17:07:50 This message was sent by XFMail -------------------------------------------------