How to redirect mail sent to root to external mailbox?

Mark J. Sommer msommer at argotsoft.com
Mon Nov 14 15:57:17 GMT 2005


> -----Original Message-----
> From: Greg Barniskis [mailto:nalists at scls.lib.wi.us] 
> Sent: Monday, November 14, 2005 8:02 AM
> To: Mark J. Sommer
> Cc: 'Hans Nieser'; freebsd-questions at freebsd.org
> Subject: Re: How to redirect mail sent to root to external mailbox?
> 
> Mark J. Sommer wrote:
> 
> > 
> > This is really a sendmail question I believe.  Your problem is 
> > probably because root doesn't get masqueraded.  In your 
> sendmail.cf, 
> > is there a line like the following:
> > 
> > CEroot
> > 
> > or
> > 
> > C{E}root
> > 
> > If so, comment it out and restart sendmail.
> 
> That will work but the config will get overwritten on 
> upgrades. It is best to override the defaults via the mc 
> config generator, so that "CE root" doesn't appear in the first place.

Yeah, I looked all over /usr/share/sendmail to find that config, but I
couldn't.  When I resolved this, I think I modified the template that the
macros start from to avoid having it re-written.  I'd appreciate it if
anyone can pass on what macro it is that controls this.




More information about the freebsd-questions mailing list