Date: Mon, 4 Nov 2002 11:22:48 -0600 From: "KizerSoze" <kizersoze@sbcglobal.net> To: "Matthew Seaman" <m.seaman@infracaninophile.co.uk>, <freebsd-questions@FreeBSD.ORG> Subject: RE: Default Sendmail install with FreeBSD Message-ID: <HEECLIFMNNPIOOGJFBKMAELPCCAA.kizersoze@sbcglobal.net> In-Reply-To: <20021104121346.GB16056@happy-idiot-talk.infracaninophi>
index | next in thread | previous in thread | raw e-mail
Matthew,
I actually tried using the generics table from the start, which is what led
me to figure out that the root account wasn't getting masqueraded. After
figuring that out, I completely took out all entries of the genericstable to
see that all acounts but root would be masqueraded, so putting that back
into the genericstable won't do any good.
I did however just comment out the C{E}root in my .cf file and restarted
sendmail, and, alas, it finally is working like I want it to and
masquerading the root account.
Thanks to everyone for their patience in helping me solve my problem,
Ed
-----Original Message-----
From: owner-freebsd-questions@FreeBSD.ORG
[mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Matthew Seaman
Sent: Monday, November 04, 2002 6:14 AM
To: freebsd-questions@FreeBSD.ORG
Subject: Re: Default Sendmail install with FreeBSD
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
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?HEECLIFMNNPIOOGJFBKMAELPCCAA.kizersoze>
