From owner-freebsd-questions@FreeBSD.ORG Mon Sep 1 12:04:40 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E56BD10656FE for ; Mon, 1 Sep 2008 12:04:40 +0000 (UTC) (envelope-from jon@witchspace.com) Received: from mtaout02-winn.ispmail.ntl.com (mtaout02-winn.ispmail.ntl.com [81.103.221.48]) by mx1.freebsd.org (Postfix) with ESMTP id 55E148FC0A for ; Mon, 1 Sep 2008 12:04:40 +0000 (UTC) (envelope-from jon@witchspace.com) Received: from aamtaout02-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout02-winn.ispmail.ntl.com with ESMTP id <20080901120438.BTXW21103.mtaout02-winn.ispmail.ntl.com@aamtaout02-winn.ispmail.ntl.com> for ; Mon, 1 Sep 2008 13:04:38 +0100 Received: from witchspace.com ([82.15.251.148]) by aamtaout02-winn.ispmail.ntl.com with SMTP id <20080901120438.FMAJ19289.aamtaout02-winn.ispmail.ntl.com@witchspace.com> for ; Mon, 1 Sep 2008 13:04:38 +0100 Received: (qmail 47364 invoked from network); 1 Sep 2008 12:02:37 -0000 Received: from unknown (HELO ?192.168.0.1?) (192.168.0.1) by dookie.home with SMTP; 1 Sep 2008 12:02:37 -0000 Message-ID: <48BBDA9B.7000102@witchspace.com> Date: Mon, 01 Sep 2008 13:05:47 +0100 From: Jonathan Belson User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Matthew Seaman References: <48A00C8C.4060105@witchspace.com> <48A05902.8060103@FreeBSD.org> <48B66D15.5080104@witchspace.com> <48B671B4.9070602@infracaninophile.co.uk> <48B6AE4F.3050903@witchspace.com> In-Reply-To: <48B6AE4F.3050903@witchspace.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: glarkin@freebsd.org, freebsd-questions@freebsd.org Subject: Re: Changing 'From:' address of periodic scripts X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Sep 2008 12:04:41 -0000 Jonathan Belson wrote: > Matthew Seaman wrote: >> Yes. root is specifically exempted from all the masquerading stuff. >> There's an EXPOSED_USER macro you can use in $(hostname).mc to control >> that. > > Ah, that explains it. There doesn't seem to be a way to remove exposed > users, but there is a web page explaining how to stop 'root' being added > as a default exposed user: > > http://www.grok.org.uk/docs/smroot.html > > Instead of doing this, I've told periodic.conf to send its output to my > local account on the server, and added a .forward file to pass the > e-mail to my 'real' address. Hopefully this will play nicely with > sendmail's masquerading. Of course it didn't as the e-mail's sender was still 'root' :-S I ended up following the instructions from the web page above, and after initially getting caught out by the difference between 'dnl' and '#' I finally have a configuration that works. Thanks, --Jon