mail to root, local only

Gabriel Gunderson gabe at gundy.org
Wed Aug 16 00:48:36 MDT 2006


On Tue, 2006-08-15 at 22:54 -0600, Troy Bowman wrote:
> Hmm, no one replied to this.  I guess everyone is truly scared of 
> Sendmail?  Hah.  I read this list once every few weeks.  Sorry for a 
> delay in response.
> 
> It should be as simple as taking the smtp MAILER directive out of
> your 
> .mc file and rebuild your .cf.  If you want to start a .mc from
> scratch, 
> you could do something like this:
> 
> local-only.mc, cut/paste
> ---8<--------
> divert(-1)
> divert(0)dnl
> dnl # your m4 file (this is where gentoo keeps it)
> include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
> dnl # host type
> OSTYPE(linux)dnl
> DOMAIN(generic)dnl
> dnl # listen on localhost only
> DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
> dnl # undefine the alias file
> undefine(`ALIAS_FILE')
> dnl # define local only
> MAILER(local)dnl
> ---8<-------- 

Thanks for reminding me *why* I dropped it.

-- 
Gabriel Gunderson
http://gundy.org




More information about the PLUG mailing list