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

Re: re-directing root's email ?



Guy Rouillier wrote:

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. ;-)

Kind regards,

Mike



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?


Cheers,

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?

Working machine (swift)---------------
Dec 19 18:39:13 swift sendmail[3165]: alias database /etc/aliases rebuilt by root
Dec 19 18:39:13 swift sendmail[3165]: /etc/aliases: 64 aliases, longest 23 bytes, 652 bytes total
Dec 19 18:39:13 swift sendmail[3172]: starting daemon (8.12.10): SMTP+queueing 01:00:00
Dec 19 18:39:13 swift sm-msp-queue[3181]: starting daemon (8.12.10): queueing 01:00:00
Dec 19 18:39:13 swift sendmail[3183]: hBJNdDe3003183: from=<root swift hockings net>, size=428, class=0, nrcpts=1, msgid=<200312192337 hBJNbPxu009075 swift hockings net>, proto=ESMTP, daemon=MTA, relay=swift.hockings.net [127.0.0.1]
Dec 19 18:39:13 swift sm-msp-queue[3182]: hBJNbPxu009075: to=root, ctladdr=root (0/0), delay=00:01:48, xdelay=00:00:00, mailer=relay, pri=120132, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (hBJNdDe3003183 Message accepted for delivery)
Dec 19 18:39:14 swift sendmail[3193]: hBJNdDe3003183: to=swift root hockings net, ctladdr=<root swift hockings net> (0/0), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30655, relay=mail.powergate.ca [216.183.11.6], dsn=2.0.0, stat=Sent (Ok: queued as 40D5F8753A)
Dec 19 18:39:20 swift spamd[3195]: server started on port 783/tcp (running version 2.60)
Dec 20 00:02:57 swift sendmail[4274]: hBK52vNY004274: from=mike hockings net, size=274, class=0, nrcpts=1, msgid=<1071896576 4264 0 camel swift hockings net>, relay=root localhost
Dec 20 00:02:57 swift sendmail[4276]: hBK52ve3004276: from=<mike hockings net>, size=434, class=0, nrcpts=1, msgid=<1071896576 4264 0 camel swift hockings net>, proto=ESMTP, daemon=MTA, relay=swift.hockings.net [127.0.0.1]
Dec 20 00:02:57 swift sendmail[4274]: hBK52vNY004274: to=root, ctladdr=mike hockings net (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30274, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (hBK52ve3004276 Message accepted for delivery)
Dec 20 00:02:58 swift sendmail[4277]: hBK52ve3004276: to=swift root hockings net, delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30641, relay=mail.powergate.ca [216.183.11.6], dsn=2.0.0, stat=Sent (Ok: queued as DDFE087483)
Dec 20 00:06:03 swift sendmail[4361]: hBK563MH004361: from=mike hockings net, size=276, class=0, nrcpts=1, msgid=<1071896763 4355 0 camel swift hockings net>, relay=root localhost
Dec 20 00:06:03 swift sendmail[4363]: hBK563e3004363: from=<mike hockings net>, size=436, class=0, nrcpts=1, msgid=<1071896763 4355 0 camel swift hockings net>, proto=ESMTP, daemon=MTA, relay=swift.hockings.net [127.0.0.1]
Dec 20 00:06:03 swift sendmail[4361]: hBK563MH004361: to=root, ctladdr=mike hockings net (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30276, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (hBK563e3004363 Message accepted for delivery)
Dec 20 00:06:04 swift sendmail[4364]: hBK563e3004363: to=swift root hockings net, delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30643, relay=mail.powergate.ca [216.183.11.6], dsn=2.0.0, stat=Sent (Ok: queued as 0C42287577)
Failing machine (james) ---------------------- Dec 19 16:53:47 james sendmail[2275]: alias database /etc/aliases rebuilt by root
Dec 19 16:53:47 james sendmail[2275]: /etc/aliases: 63 aliases, longest 10 bytes, 625 bytes total
Dec 19 16:53:48 james sendmail[2282]: starting daemon (8.12.10): SMTP+queueing 01:00:00
Dec 19 16:53:48 james sm-msp-queue[2291]: starting daemon (8.12.10): queueing 01:00:00
Dec 20 00:29:52 james sendmail[2740]: hBK5Tpwi002740: from=root james hockings net, size=350, class=0, nrcpts=1, msgid=<200312200529 hBK5Tpwi002740 james hockings net>, relay=root localhost
Dec 20 00:29:52 james sendmail[2742]: hBK5Tqhd002742: from=<root james hockings net>, size=601, class=0, nrcpts=1, msgid=<200312200529 hBK5Tpwi002740 james hockings net>, proto=ESMTP, daemon=MTA, relay=james.hockings.net [127.0.0.1]
Dec 20 00:29:52 james sendmail[2740]: hBK5Tpwi002740: to=root, ctladdr=root james hockings net (0/0), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30350, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (hBK5Tqhd002742 Message accepted for delivery)
Dec 20 00:29:53 james sendmail[2743]: hBK5Tqhd002742: to=james root hockings net, ctladdr=<root james hockings net> (0/0), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30823, relay=mail.powergate.ca [216.183.11.6], dsn=2.0.0, stat=Sent (Ok: queued as 2F41F87579)
Dec 20 04:02:15 james sendmail[3114]: hBK92FcI003114: from=root, size=12001, class=0, nrcpts=1, msgid=<200312200902 hBK92FcI003114 james hockings net>, relay=root localhost
Dec 20 04:02:15 james sendmail[3117]: hBK92Fhd003117: from=<root james hockings net>, size=12297, class=0, nrcpts=1, msgid=<200312200902 hBK92FcI003114 james hockings net>, proto=ESMTP, daemon=MTA, relay=james.hockings.net [127.0.0.1]
Dec 20 04:02:15 james sendmail[3114]: hBK92FcI003114: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=42001, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (hBK92Fhd003117 Message accepted for delivery)
Dec 20 04:02:16 james sendmail[3118]: hBK92Fhd003117: to=james root hockings net, ctladdr=<root james hockings net> (0/0), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=42524, relay=mail.powergate.ca [216.183.11.6], dsn=2.0.0, stat=Sent (Ok: queued as DF25D8783F)






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