From owner-freebsd-questions Mon Nov 4 9:22:10 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 CCAE337B401 for ; Mon, 4 Nov 2002 09:22:07 -0800 (PST) Received: from smtp011.mail.yahoo.com (smtp011.mail.yahoo.com [216.136.173.31]) by mx1.FreeBSD.org (Postfix) with SMTP id 49A9B43E6E for ; Mon, 4 Nov 2002 09:22:03 -0800 (PST) (envelope-from kizersoze@sbcglobal.net) Received: from adsl-65-71-68-47.dsl.rcsntx.swbell.net (HELO hume) (kizersoze@sbcglobal.net@65.71.68.47 with login) by smtp.mail.vip.sc5.yahoo.com with SMTP; 4 Nov 2002 17:22:02 -0000 From: "KizerSoze" To: "Matthew Seaman" , Subject: RE: Default Sendmail install with FreeBSD Date: Mon, 4 Nov 2002 11:22:48 -0600 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <20021104121346.GB16056@happy-idiot-talk.infracaninophi> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 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