From owner-freebsd-questions@FreeBSD.ORG Mon Nov 14 17:42:33 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 6AB5116A420 for ; Mon, 14 Nov 2005 17:42:33 +0000 (GMT) (envelope-from nalists@scls.lib.wi.us) Received: from mail.scls.lib.wi.us (mail.scls.lib.wi.us [198.150.40.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD2BC43D6E for ; Mon, 14 Nov 2005 17:42:32 +0000 (GMT) (envelope-from nalists@scls.lib.wi.us) Received: from [172.26.2.238] ([172.26.2.238]) by mail.scls.lib.wi.us (8.12.9p2/8.12.9) with ESMTP id jAEHfFG1019775; Mon, 14 Nov 2005 11:41:15 -0600 (CST) (envelope-from nalists@scls.lib.wi.us) Message-ID: <4378CC3B.901@scls.lib.wi.us> Date: Mon, 14 Nov 2005 11:41:15 -0600 From: Greg Barniskis User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Mark J. Sommer" References: <200511141556.jAEFue6C064881@argotsoft.com> In-Reply-To: <200511141556.jAEFue6C064881@argotsoft.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: 'Hans Nieser' , freebsd-questions@freebsd.org Subject: Re: How to redirect mail sent to root to external mailbox? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Nov 2005 17:42:33 -0000 Mark J. Sommer wrote: >>-----Original Message----- >>From: Greg Barniskis [mailto:nalists@scls.lib.wi.us] >>Sent: Monday, November 14, 2005 8:02 AM >>To: Mark J. Sommer >>Cc: 'Hans Nieser'; freebsd-questions@freebsd.org >>Subject: Re: How to redirect mail sent to root to external mailbox? >> >>Mark J. Sommer wrote: >> >> >>>This is really a sendmail question I believe. Your problem is >>>probably because root doesn't get masqueraded. In your >> >>sendmail.cf, >> >>>is there a line like the following: >>> >>>CEroot >>> >>>or >>> >>>C{E}root >>> >>>If so, comment it out and restart sendmail. >> >>That will work but the config will get overwritten on >>upgrades. It is best to override the defaults via the mc >>config generator, so that "CE root" doesn't appear in the first place. > > > Yeah, I looked all over /usr/share/sendmail to find that config, but I > couldn't. When I resolved this, I think I modified the template that the > macros start from to avoid having it re-written. I'd appreciate it if > anyone can pass on what macro it is that controls this. A glance at the bat book tells me the exception (no masquerading) is inserted by EXPOSED_USER(root) Doh! I see it now. FreeBSD doesn't do it this way (so no "CE root"). For FreeBSD, non-masquerading for root is simply set by an entry in /etc/mail/exposed-user-names, which is brought in by the EXPOSED_USER_FILE directive in the default mc file. Edit exposed-user-names to your heart's content (and pay attention in case mergemaster throws it back at you during upgrades), and all should be well. -- Greg Barniskis, Computer Systems Integrator South Central Library System (SCLS) Library Interchange Network (LINK) , (608) 266-6348