sendmail, masquerading, exposed root?

Anton Shterenlikht mexas at
Mon May 28 11:49:45 UTC 2012

I've a problem with sendmail setup,
for which I have no satisfactory solution.

I've several hosts, all on the university
network. I'd like to forward all root's mail
from all these hosts to my personal email.

The problem seems to be with the From field.

If I leave the root exposed, the From
field looks e.g. root at,
which is rejected by the university mailer,
because it has no knowledge of this address.

The only solution I've found is not to
expose root, and then masquerade all From
to, which is acceptable, but
then I get root mail from all my hosts always originating
at root at, so I have trouble distinguishing
between individual hosts. I solve this
by setting the hostname in the subject like.

But I'm mostly worried about not exposing root.
Plus the network people hate to see root at
anywhere on the network.

Can anybody suggest a better solution?


Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423

More information about the freebsd-questions mailing list