From owner-freebsd-questions@FreeBSD.ORG Thu Feb 10 10:57:32 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 3211216A4CE for ; Thu, 10 Feb 2005 10:57:32 +0000 (GMT) Received: from smtp.ade.swiftdsl.com.au (smtp.ade.swiftdsl.com.au [218.214.228.98]) by mx1.FreeBSD.org (Postfix) with SMTP id 1277E43D2D for ; Thu, 10 Feb 2005 10:57:31 +0000 (GMT) (envelope-from no-spam@swiftdsl.com.au) Received: (qmail 2725 invoked from network); 10 Feb 2005 10:57:32 -0000 Received: from unknown (HELO daemon.foo.lan) (218.214.176.70) by smtp.ade.swiftdsl.com.au with SMTP; 10 Feb 2005 10:57:32 -0000 From: Ian Moore To: freebsd-questions@freebsd.org Date: Thu, 10 Feb 2005 21:27:19 +1030 User-Agent: KMail/1.7.2 References: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2614156.Y7lzFxZD4n"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200502102127.27393.no-spam@swiftdsl.com.au> cc: Ruben de Groot cc: Ted Mittelstaedt 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: Thu, 10 Feb 2005 10:57:32 -0000 --nextPart2614156.Y7lzFxZD4n Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wed, 9 Feb 2005 17:21, Ted Mittelstaedt wrote: > > -----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 > Thanks, I'll give that a go. BTW, using C{E} instead if C{E}root plus the MASQUERADE_AS macro doesn't se= em=20 to work. I didn't try the MASQUERADE_ENVELOPE macro with it though.=20 Actually, even sending mail as my own local user on the system ends up with= =20 the hostname added in. Perhaps I'm doing something wrong. Anyway, from what you've both said, rebuilding cron sounds like a better=20 solution. Once I've modified the source, do I just do a make install from=20 the /usr/src/usr.sbin/cron directory? Cheers, =2D-=20 Ian GPG Key: http://home.swiftdsl.com.au/~imoore/no-spam.asc --nextPart2614156.Y7lzFxZD4n Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCCz4XPUlnmbKkJ6ARAkICAJ0Vt3RoKMVAp7kaOezNwuR3VhNjJACbBiZy AwYPoTVCxtBh4j3OI2K0BBE= =q92O -----END PGP SIGNATURE----- --nextPart2614156.Y7lzFxZD4n--