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 -------------------------------------------------
On Sat, 04 Aug 2012 17:07:55 +0100 (BST) (Ted Harding) Ted.Harding@wlandres.net allegedly wrote:
Greetings All! I have just (!!! -- after about 4 years ... !!!) that in my Debian Etch setup 'sendmail' is aliased to 'exim4':
Ted
This won't help you, but I have a question. Are you running the MTA on your desktop? And if so, why? Wouldn't it be easier to use an external MTA provided by your ISP. I note that the MX for wlandres.net is at 1and1 so I presume you could use their servers.
Mick
(exim is the default MTA on debian. But I always use postfix so I can't help with exim config anyway....)
--------------------------------------------------------------------- blog: baldric.net fingerprint: FC23 3338 F664 5E66 876B 72C0 0A1F E60B 5BAD D312
Note that I have recently upgraded my GPG key see: http://baldric.net/2012/07/20/gpg-key-upgrade/ ---------------------------------------------------------------------
(Ted Harding) Ted.Harding@wlandres.net
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. [...] 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 [...]
/etc/email-addresses defines the outgoing externally-safe address for each user in the usual debian exim4-config.
If a user is not listed in there, you're getting the default hostname (FQDN).
I don't think "deb" should be the FQDN of any machine, so there's probably some problem with /etc/hosts or /etc/hostname but setting the address in email-addresses would be OK.
If you prefer to do it with command-line options, -f might do it, but I suspect email-addresses may override it.
Hope that informs,
On 05-Aug-2012 11:55:47 MJ Ray wrote:
(Ted Harding) Ted.Harding@wlandres.net
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. [...] 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 [...]
/etc/email-addresses defines the outgoing externally-safe address for each user in the usual debian exim4-config.
If a user is not listed in there, you're getting the default hostname (FQDN).
Thanks for this tip. I edited that file to add (see below) what I inferred should be the correct entry:
# This is /etc/email-addresses. It is part of the exim package # # This file contains email addresses to use for outgoing mail. Any local # part not in here will be qualified by the system domain as normal. # # It should contain lines of the form: # #user: someone@isp.com #otheruser: someoneelse@anotherisp.com ted: ted.harding@wlandres.net
Unfortunately, this seems to have had no effect, even after I rebooted! I am now tryiong to suss out how to promote user "ted" to trusted user status. Currently reading though
/usr/share/doc/exim4-base/spec.txt.gz
and trying to locate specific instructions!
Maybe I'll get there, but anyway thanks for the tip. Ted.
I don't think "deb" should be the FQDN of any machine, so there's probably some problem with /etc/hosts or /etc/hostname but setting the address in email-addresses would be OK.
My LAN domain is locally called "fort.knox.uk" (unknown to the outside world, of course), and the /etc/hosts entry is:
192.168.1.15 deb.fort.knox.uk deb
so "deb" is the abbreviated alias (used when I e.g. "ssh -X deb" from another machine). Not sure why exim4 picked that rather than the full name "deb.fort.knox.uk". (BTW, "deb" was chosen because at the time it was the only machine with a Debian OS; now there is "deb2"...).
If you prefer to do it with command-line options, -f might do it, but I suspect email-addresses may override it.
I rather fear it would (given what I have managed to suss out so far).
Hope that informs,
MJ Ray (slef), member of www.software.coop, a for-more-than-profit co-op.
Best wishes, Ted.
------------------------------------------------- E-Mail: (Ted Harding) Ted.Harding@wlandres.net Date: 05-Aug-2012 Time: 19:39:58 This message was sent by XFMail -------------------------------------------------