From owner-freebsd-questions@FreeBSD.ORG Wed Feb 23 09:27:36 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 C9AE316A4CE for ; Wed, 23 Feb 2005 09:27:36 +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 A222F43D53 for ; Wed, 23 Feb 2005 09:27:35 +0000 (GMT) (envelope-from no-spam@swiftdsl.com.au) Received: (qmail 9657 invoked from network); 23 Feb 2005 09:27:36 -0000 Received: from unknown (HELO daemon.foo.lan) (218.214.176.70) by smtp.ade.swiftdsl.com.au with SMTP; 23 Feb 2005 09:27:36 -0000 From: Ian Moore To: freebsd-questions@freebsd.org Date: Wed, 23 Feb 2005 19:57:25 +1030 User-Agent: KMail/1.7.2 References: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1268452.LfZQZsDl4x"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200502231957.32345.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: Wed, 23 Feb 2005 09:27:36 -0000 --nextPart1268452.LfZQZsDl4x Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sat, 19 Feb 2005 18:01, Ted Mittelstaedt wrote: > > -----Original Message----- > > From: owner-freebsd-questions@freebsd.org > > [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Ian Moore > > Sent: Wednesday, February 16, 2005 2:10 AM > > To: Ted Mittelstaedt > > Cc: Ruben de Groot; freebsd-questions@freebsd.org > > Subject: Re: Sendmail masquerading configuration > > > > On Thu, 10 Feb 2005 22:14, Ted Mittelstaedt wrote: > > > Ian Moore wrote: > > > > On Wed, 9 Feb 2005 17:21, Ted Mittelstaedt wrote: > > > >> 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. > > > > Hi, > > Sorry, I'm still having trouble with this - my changes don't seem to > > have had any effect, cron is still sending mail as > > root@internal.hamcoll.sa.edu.au (Cron Daemon) > > I think I've done something wrong! > > > > What I did was: > > > > #cd /usr/src/usr.sbin/cron/cron > > #ee config.h: > > and I changed the line > > #define MAILARGS "%s -FCronDaemon -odi -oem -oi -t" > > /*-*/ > > to > > #define MAILARGS "%s -Froot@hamcoll.sa.edu.au -odi -oem -oi > > -t" /*-*/ > > > > (I assume the # at the beginning is correct?) > > Yes. But, the line is incorrect - it needs to be the following: > > #define MAILARGS "%s -FCronDaemon -froot@hamcoll.sa.edu.au -odi -oem -oi > > See my earlier posting for this. "man sendmail" also will explain the > flags a bit as well. > > The rest of the stuff is fine. > > Ted Thanks Ted, - I should have read more carefully. Well that sort of works - cron jobs get sent from root@hamcoll.sa.edu.au=20 except for the periodic jobs, which are still sent from=20 root@.hamcoll.sa.edu.au. Perhaps periodic sends the emails itself= =20 instead of cron, though looking at it's source I can't see how. Also, I still need to adjust my sendmail config on the server that is our=20 local smtp server. It seems to be putting the hostname back in cron's email= s. Cheers, =2D-=20 Ian GPG Key: http://home.swiftdsl.com.au/~imoore/no-spam.asc --nextPart1268452.LfZQZsDl4x Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCHEyEPUlnmbKkJ6ARAkMtAJ9ZyaAAOar2UBVHvcj5HDJWpgwZjQCghSal 6ODQsveJ+WPwdRHr+FH8ujk= =zFFx -----END PGP SIGNATURE----- --nextPart1268452.LfZQZsDl4x--