Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 01 Sep 2008 13:05:47 +0100
From:      Jonathan Belson <jon@witchspace.com>
To:        Matthew Seaman <m.seaman@infracaninophile.co.uk>
Cc:        glarkin@freebsd.org, freebsd-questions@freebsd.org
Subject:   Re: Changing 'From:' address of periodic scripts
Message-ID:  <48BBDA9B.7000102@witchspace.com>
In-Reply-To: <48B6AE4F.3050903@witchspace.com>
References:  <48A00C8C.4060105@witchspace.com> <48A05902.8060103@FreeBSD.org> <48B66D15.5080104@witchspace.com> <48B671B4.9070602@infracaninophile.co.uk> <48B6AE4F.3050903@witchspace.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48BBDA9B.7000102>