Date: Mon, 4 Nov 2002 12:13:46 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: freebsd-questions@FreeBSD.ORG Subject: Re: Default Sendmail install with FreeBSD Message-ID: <20021104121346.GB16056@happy-idiot-talk.infracaninophi> In-Reply-To: <HEECLIFMNNPIOOGJFBKMKELFCCAA.kizersoze@sbcglobal.net> References: <20021104080901.GA16056@happy-idiot-talk.infracaninophi> <HEECLIFMNNPIOOGJFBKMKELFCCAA.kizersoze@sbcglobal.net>
index | next in thread | previous in thread | raw e-mail
On Mon, Nov 04, 2002 at 03:16:33AM -0600, KizerSoze wrote:
> I have finally been able to get the masquerading setup on my machine so that
> mail delivery from local accounts can actually make it to my home system,
> but, sendmail DOES NOT masquerade the root account. I'd like this one
> masqueraded so I can receive all the daily/weekly/monthly emails.
>
> Does anyone know how to tell sendmail to also masquerade the root
> account....every other account I try gets masqueraded BUT the root account.
By default the root account always used to be added to class {E} ---
exposed users, ie. account names that should not be masqueraded. The
docs suggest that stopped after sendmail 8.10.x, but a quick glance
through /etc/mail/sendmail.cf still reveals:
C{E}root
and there's no EXPOSED_USER(`root') in my .mc file, so I guess it's
still happening.
You can use the GENERICSTABLE functionality to rewrite the sender
address: works pretty much like MASQUERADE except it matches
individual senders rather than domain names. Insert into
/etc/mail/`hostname`.mc:
FEATURE(genericstable, `hash -o /etc/mail/genericstable')dnl
GENERICS_DOMAIN(`your.hostname.com')dnl
and create a file /etc/mail/genericstable containing:
root god-like-being@somewhere.else.com
then rebuild your sendmail config and the genericstable.db database
etc.:
cd /etc/mail
make install
make restart
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks
Savill Way
Marlow
Tel: +44 1628 476614 Bucks., SL7 1TH UK
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021104121346.GB16056>
