From owner-freebsd-questions@FreeBSD.ORG Tue Feb 8 11:05:35 2005 Return-Path: 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 3E3F416A4CE for ; Tue, 8 Feb 2005 11:05:35 +0000 (GMT) Received: from mail.freebsd-corp-net-guide.com (mail.freebsd-corp-net-guide.com [65.75.192.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8102443D1D for ; Tue, 8 Feb 2005 11:05:32 +0000 (GMT) (envelope-from tedm@toybox.placo.com) Received: from tedwin2k (nat-rtr.freebsd-corp-net-guide.com [65.75.197.130]) j18B5Mj09251; Tue, 8 Feb 2005 03:05:26 -0800 (PST) (envelope-from tedm@toybox.placo.com) From: "Ted Mittelstaedt" To: "Ruben de Groot" Date: Tue, 8 Feb 2005 03:05:21 -0800 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.6604 (9.0.2911.0) In-Reply-To: <20050207145431.GA22794@ei.bzerk.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Importance: Normal cc: Ian Moore cc: freebsd-questions@freebsd.org Subject: RE: Sendmail masquerading configuration X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Feb 2005 11:05:35 -0000 > -----Original Message----- > From: Ruben de Groot [mailto:mail25@bzerk.org] > Sent: Monday, February 07, 2005 6:55 AM > To: Ted Mittelstaedt > Cc: Ian Moore; freebsd-questions@freebsd.org > Subject: Re: Sendmail masquerading configuration > > > On Sun, Feb 06, 2005 at 02:28:17AM -0800, Ted Mittelstaedt typed: > > > > > > > -----Original Message----- > > > From: owner-freebsd-questions@freebsd.org > > > [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Ian Moore > > > Sent: Sunday, February 06, 2005 2:07 AM > > > To: freebsd-questions@freebsd.org > > > Subject: Sendmail masquerading configuration > > > > > > > > > Hi, > > > I'm hoping someone can help me with this. > > > > > > I want to make sendmail (on a 5.3-Release server) leave the > > > host name out of > > > the sender address when sending mail from that machine. > > > I.E. mail from root currently has a sender address of > > > root@myhost.foo.bar, I > > > want it to be root@foo.bar instead. > > > > > > > Not possible, I think, as I recall masquerading only works on > > users not in the T macro. (ie: Trusted Users) root is > > most definitely in this macro. > > Actually, I believe it's the EXPOSED_USERS macro, and it can be > adjusted; e.g. in sendmail.cf: > > C{E}root > > just remove the root user from this line. In conjunction with a > MASQUERADE_AS macro, this will allow root to send email coming from > your domain without your hostname. If you do this then lots of messages generated by the system will suddenly start generating (at best): X-Authentication-Warning: myhost.foo.bar: root set sender to someuser using -f It also makes it harder to troubleshoot when someone external to your system is sending bogus junk to you. And while it's not applicable now, with older versions of sendmail this would definitely break all your scripts that used e-mail. Use of the -f flag is what he needs to do. Ted