Bob McClure Jr wrote:I _amost_ have this working. Should be such a simple thing but it is causing me a lot of grief. I am using the .forward file in root's home dir to do the forward. Right now it is working on only one of three machines. I _think_ I have them all configured identically. In fact I have copied the /etc/mail/sendmail.mc file from the working machine to the others and stop-make-start of sendmail but it still does not work. Below is the mail log from the working machine and one non-working machine. This is from a reboot and send an email to root sequence. I use ximian to send the mail. Is there a better test, possibly a command-line way? I see a difference in the last line, that additional ctladdr parm in the failing case. Could that be causing the problem? If so, how do I make it go away?
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
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?