Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

From: header gets changed. Why?

32 views
Skip to first unread message

Hokan

unread,
Oct 4, 2012, 1:58:51 PM10/4/12
to
I got an email from a local brewpub. The From: header (not the envelop from)
seems to have said

From: townhall.brewerym

When the mail was delivered to me that header said

From: townhall...@smtp-relay.enet.umn.edu

smtp-relay.enet.umn.edu is the name of my MX server. The mail was
relayed from that server to my delivery server where I read it.

There is no masquerading in my .mc files.

Why did that From: get changed. As the change was not useful, how
do I make it not change.

Claus Aßmann

unread,
Oct 4, 2012, 10:25:22 PM10/4/12
to
Hokan wrote:

> From: townhall.brewerym

That is synctactically invalid. See RFC 822 (or one its successors).

> When the mail was delivered to me that header said

> From: townhall...@smtp-relay.enet.umn.edu

> Why did that From: get changed. As the change was not useful, how
> do I make it not change.

By asking the sender to follow the rules (which are only known for 20
years or so, but it must be really hard to implement them... which
probably is also due to the fact that sendmail 8 "repairs" all the
garbage that it is given -- sometimes with "interesting" results.)


BTW: there might be some option to prevent sm8 from adding its own
hostname to unqualified addresses, but I can't remember nor find it in
the docs right now.

Per Hedeland

unread,
Oct 6, 2012, 2:35:37 PM10/6/12
to
In article <k4lgei$aum$1...@obelix.informatik.uni-kiel.de> Claus
=?iso-8859-1?Q?A=DFmann?=
<ca+sendmail(-no-copies-please)@mine.informatik.uni-kiel.de> writes:
>
>BTW: there might be some option to prevent sm8 from adding its own
>hostname to unqualified addresses, but I can't remember nor find it in
>the docs right now.

I guess it's the (in)famous 'C' mailer flag - from doc/op/op.me:

C= If mail is received from a mailer with this flag
set, any addresses in the header that do not have
an at sign ("@") after being rewritten by ruleset
three will have the "@domain" clause from the
sender envelope address tacked on. This allows
mail with headers of the form:

From: usera@hosta
To: userb@hostb, userc

to be rewritten as:

From: usera@hosta
To: userb@hostb, userc@hosta

automatically. However, it doesn't really work
reliably.

However this flag hasn't been set in a default-built sendmail.cf for a
very long time AFAIK (I checked 8.11.0). If it is set, and the build is
using a sm8 .mc file, I think the proper ivocation to unset it would be:

MODIFY_MAILER_FLAGS(`SMTP', `-C')
MODIFY_MAILER_FLAGS(`RELAY', `-C')

--Per Hedeland

Hokan

unread,
Oct 16, 2012, 10:48:03 PM10/16/12
to
I have a newer Sendmail (8.14.something) so that option does not seem to be set.
0 new messages