On 04/11/13 21:33, Gilles Chehade wrote:
On Tue, Apr 09, 2013 at 10:42:56AM +0200, Michael wrote:
Hi,


Hi,

I noticed some weird behavior regarding the "From:" header when
using smtpd under some circumstances, not sure if this is a bug.

[...]

The problem:
Mails generated on server 2 (some.thing.example.com) from /etc/daily
or anything else that go to root get forwarded properly to server 1,
but the From: header gets rewritten to r...@mail.domain.tld.
Normally I would expect the From: header to be
r...@some.thing.example.com. When using sendmail instead of smtpd on
server 2 as well, that is the case.

Ideas? Suggestions?


smtpd doesn't support address rewriting at the moment.
It will either use the local `hostname` or the one supplied by your MUA.

While I knew it didn't rewrite stuff, looking at it this way, it sure can cause... interesting times.

E.g. meaning if you mail out stuff with a plain "From: $USER" header, it will pick up the first sendmail (or non-smtpd anyway) hostname on its way... Which may work out, or not.

Reply via email to