From owner-freebsd-questions@FreeBSD.ORG Wed Feb 9 06:51:18 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 1569C16A4CE for ; Wed, 9 Feb 2005 06:51:18 +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 92D7243D49 for ; Wed, 9 Feb 2005 06:51:17 +0000 (GMT) (envelope-from tedm@toybox.placo.com) Received: from tedwin2k (nat-rtr.freebsd-corp-net-guide.com [65.75.197.130]) j196p1j13275; Tue, 8 Feb 2005 22:51:09 -0800 (PST) (envelope-from tedm@toybox.placo.com) From: "Ted Mittelstaedt" To: "Ruben de Groot" Date: Tue, 8 Feb 2005 22:51:00 -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: <20050208124715.GA75895@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: Wed, 09 Feb 2005 06:51:18 -0000 > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Ruben de Groot > Sent: Tuesday, February 08, 2005 4:47 AM > To: Ted Mittelstaedt > Cc: Ian Moore; freebsd-questions@freebsd.org > Subject: Re: Sendmail masquerading configuration > > > > > > X-Authentication-Warning: myhost.foo.bar: root set sender to > > someuser using -f > > Sorry, but this simply isn't true. I have just tested this. Warnings > like this might get generated when you remove root from the > TRUSTED_USERS macro; *NOT* when you remove it from EXPOSED_USERS. > Your right, me bad! > > It also makes it harder to troubleshoot when someone external to > > your system is sending bogus junk to you. > > I agree. As I said in the part of my message you snipped: > > "BTW, I agree that masquerading is NOT the proper way to do > these things." > > > 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. > > Fine. But the OP's problem concerned mail send by cron. How would you > instruct cron to use the -f flag? (There's a MAILTO environment > variable in cron, but no MAILFROM) > I would probably install src/usr.sbin/ and recompile cron to use the -f flag. The flags are settible in cron/config.h in the source, FreeBSD uses #define MAILARGS "%s -FCronDaemon -odi -oem -oi -t" /*-*/ just change this to #define MAILARGS "%s -FCronDaemon -froot@verizon.net -odi -oem -oi -t" /*-*/ Ted