[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: re-directing root's email ?



On Wed, Dec 17, 2003 at 09:14:46AM -0500, M.Hockings wrote:
> Guy Rouillier wrote:
> 
> >M.Hockings wrote:
> >
> >>John Reynolds wrote:
> >>
> >>>Guy Rouillier said :
> >>>Guy Rouillier <guy-rouillier speakeasy net>
> >>>
> >>>>
> >>>>Bob McClure Jr wrote:
> >>>>
> >>>>> On Tue, Dec 16, 2003 at 03:21:40PM -0500, M.Hockings wrote:
> >>>>>
> >>>>>>I notice that I see a bunch of different emails going to root on the
> >>>>>>house server. Since I don't often sign on as root is there an 
> >>>easy way
> >>>>>>to re-direct all of root's email to my real email address? Read 
> >>>"easy"
> >>>>>>as meaning something that someone (me) not too highly skilled in 
> >>>RH will
> >>>>>>be able to comprehend and do. ;-)
> >>>>>>
> >>>>>
> >>>>>
> >>>>> Look in your aliases file (/etc/aliases for sendmail) near the
> >>>>> bottom. There is probably a commented out dummy alias for root.
> >>>>> Uncomment it and put the desired recipient address there. Then run
> >>>>>
> >>>>> newaliases
> >>>>>
> >>>>> I think you may also need to restart sendmail
> >>>>>
> >>>>> service sendmail restart
> >>>>>
> >>>>
> >>>>Bob, will a .forward file in root's directory accomplish the same 
> >>>thing?
> >>>
> >>>Yes, /.forward will redirect root email.
> >>>
> >>>John Reynolds
> >>>
> >>I take it that this would be a file .forward in / or in /root ?
> >>
> >>What should it contain, just the target email address 
> >>user&somewhere.com ?
> >
> >
> >Yes the file .forward should be in root's home directory (well, 
> >whatever user you want, not unique to root, but that is what we are 
> >talking about.)  So just log in and "cd ~".  It is a simple text file 
> >and contains one line that has a single email address like the example 
> >you gave.  BTW, this is the only way I've ever used .forward, it may 
> >actually be more capable than that.
> >
> Whoohoo (i.e, noise of excitement :-)  It works, almost.  I got the log 
> message but it appears to be sourced from an incorrect  domain.  That 
> is, I receive it but it is coming as returned mail because the domain of 
> the sender does not exist...
> 
> "Domain of sender address root machine domain does not exist)"
> 
> This is probably because I have a dummy (non-existant) domain set up for 
> the machines in the house.  Is there a way to config sendmail to use a 
> valid domain when sending even though the machine's domain is not 
> valid.  Or even to drop the machine name from the email and just use the 
> domain and I can set it to something valid.
> 
> Season's greetings,
> 
> Mike (off to research more about sendmail)

If you send the mail to a username only, e.g. "bob" instead of
"bob bubba bobcatos com", most configurations will assume the local
machine regardles of its name.

Cheers,
-- 
Bob McClure, Jr.             Bobcat Open Systems, Inc.
robertmcclure earthlink net  http://www.bobcatos.com
Bible: n. Basic instructions before leaving earth.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]