Sendmail not sending mail
Redhat 9.0
Sendmail 8.12.8-4 I want to send root messages to an external email address. I have edited my /etc/aliases file and set: root: myemail@domain.net I then run newaliases. Without changes to any files in /etc/mail, other than adding root to trusted-users, I can type the following at the command line (as root) and mail is delivered: mail myemail@domain.net (subject)test (body) test Ctrl+d Ctrl+d The message is sent with no errors in my /var/log/maillog. My system messages are still going to root on the host rather than being forwarded to the external address. I want to send messages related to cron and at to that external account. Is there additional set up in the /etc/aliases file that I am missing? TIA |
I don't know sendmail well, but what does the maillog say?
|
Quote:
Quote:
mailq Shouldn't you be sending to root instead of your email address to test the forwarding to your ISP account? Also, is this server setup on a DHCP connection? If so, it could possibly be your ISP blocking this email. And why are you running ctrl-d at the end.. doing something like this should email without problems: Code:
mail -s "My Subject" root@localhost |
Actually, I interpret what he says as:
Sending email to external user - no errors Sending email to root, just goes to root not the alias. |
tarheel92x
I know this might sound really basic but you did restart sendmail after you made the changes ? Pete |
Quote:
|
Quote:
Do I need to edit my alias? |
Quote:
|
A couple of thoughts.
1. Is there another alias for root perhaps? 2. Try setting an alias for another name to your external account and see if sending a message to that get sent on. 3. If you send an email to root from another source (ie not cron) does it work? |
All times are GMT -5. The time now is 05:56 PM. |