On Mon, 28 May 2012 12:49:43 +0100, Anton Shterenlikht wrote:
> If I leave the root exposed, the From
> field looks e.g. [email protected],
> 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:
FEATURE(always_add_domain)
FEATURE(`masquerade_entire_domain')
FEATURE(`masquerade_envelope')
FEATURE(`allmasquerade')
MASQUERADE_AS(`bris.ac.uk')
MASQUERADE_DOMAIN(`bris.ac.uk.')
MASQUERADE_DOMAIN(localhost)
MASQUERADE_DOMAIN(localhost.localdomain)
That should turn [email protected] into
[email protected] 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: mech-anton240.men root <[email protected]>
To: You <[email protected]>
Subject: mech-anton240.men.bris.ac.uk 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.
--
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[email protected]"