From owner-freebsd-questions@FreeBSD.ORG Sat Feb 19 07:31:58 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 AF33216A4CE for ; Sat, 19 Feb 2005 07:31:58 +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 093F243D2F for ; Sat, 19 Feb 2005 07:31:58 +0000 (GMT) (envelope-from tedm@toybox.placo.com) Received: from tedwin2k (nat-rtr.freebsd-corp-net-guide.com [65.75.197.130]) j1J7Vfj68140; Fri, 18 Feb 2005 23:31:42 -0800 (PST) (envelope-from tedm@toybox.placo.com) From: "Ted Mittelstaedt" To: "Ian Moore" Date: Fri, 18 Feb 2005 23:31:41 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" 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) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478 In-Reply-To: <200502162040.18799.no-spam@swiftdsl.com.au> Importance: Normal cc: Ruben de Groot 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: Sat, 19 Feb 2005 07:31:58 -0000 > -----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