From owner-freebsd-questions Mon Nov 4 4:14: 6 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D32F537B401 for ; Mon, 4 Nov 2002 04:14:04 -0800 (PST) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 68CDF43E6E for ; Mon, 4 Nov 2002 04:14:03 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.6/8.12.6) with ESMTP id gA4CDqMO017584 for ; Mon, 4 Nov 2002 12:13:52 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.6/8.12.6/Submit) id gA4CDl6b017583 for freebsd-questions@FreeBSD.ORG; Mon, 4 Nov 2002 12:13:47 GMT Date: Mon, 4 Nov 2002 12:13:46 +0000 From: Matthew Seaman To: freebsd-questions@FreeBSD.ORG Subject: Re: Default Sendmail install with FreeBSD Message-ID: <20021104121346.GB16056@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , freebsd-questions@FreeBSD.ORG References: <20021104080901.GA16056@happy-idiot-talk.infracaninophi> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i X-Spam-Status: No, hits=-13.4 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01, USER_AGENT,USER_AGENT_MUTT version=2.41 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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