sendmail, masquerading, exposed root?

Polytropon freebsd at
Mon May 28 16:08:13 UTC 2012

On Mon, 28 May 2012 12:49:43 +0100, Anton Shterenlikht wrote:
> 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.

You should be able to use sendmail's masquerading features.
For example to be configured in the correct .mc file:


That should turn root at into
root at if that's okay for you. If you change
root's name field in the passwd database (use chsh),
you could add a specific machine name so you'll easily
see from which root account you're receiving messages,
e. g. 

	From: root <root at>
	To: You < at>
	Subject: security run output

	... and so on ...

That's no big problem as you're not going to reply to
that address. (If you had to, setting Reply-To: would
surely help.)

Or you could use /etc/mail/aliases to redirect root to
a different mail address.

Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

More information about the freebsd-questions mailing list