I am using Fedora 15 as a media server. As such, I do not log into the box and check to see if are any emails to root reporting errors with the system. I would like root's email forwarded to my normal email. I modified the last line of /etc/aliases to have
root: root
or
root:
me@mydomain.com
where mydomain.com is hosted at google. After modifying the /etc/aliases I run newaliases and /etc/init.d/sendmail restart.
I have setup root's .mailrc file so that the following works.
echo "howdy" | mail
me@mydomain.com
I also tried with and without a .forward file containing
me@mydomain.com. When I try
echo "howdy" | mail -v root
I get the following error.
>>> MAIL FROM:<me@mydomain.com>
250 2.1.0 OK m30sm49334329yhe.15
>>> RCPT TO:<root>
553-5.1.2 We weren't able to find the recipient domain. Please check for any
smtp-server: 553-5.1.2 We weren't able to find the recipient domain. Please chec
k for any
553-5.1.2 spelling errors, and make sure you didn't enter any spaces, periods,
smtp-server: 553-5.1.2 spelling errors, and make sure you didn't enter any space
s, periods,
553 5.1.2 or other punctuation after the recipient's email address. m30sm4933432
9yhe.15
smtp-server: 553 5.1.2 or other punctuation after the recipient's email address.
m30sm49334329yhe.15
What step did I miss?
Thanks