Send mail to root but it send to other email
OS : Sun OS 5.7
[root@test /etc]$ mail root Subject: test_1 test^D EOT [root@test /etc] [root@test /etc]$ mail No mail for root I find it other email. Please solve problem. |
Hi,
Try running the following: sendmail -bv root grep root /etc/mail/aliases Both should just tell you where root emails go, it should be defined in the alias file. If the outputs does not match it could be that the alias file is not updated, run: newalias Check for a .forward file in roots home directory. Regards Ian |
Thank you. for Answer
I try to follow : sendmail -bv root grep root /etc/mail/aliases Resutl : [root@frontal2 ~]$ sendmail -bv root bash: sendmail: command not found [root@frontal2 ~]$ grep root /etc/mail/aliases Postmaster: root nobody: root hostmaster: root usenet: root news: root webmaster: root www: root ftp: root abuse: root noc: root security: root I found email at /root/.forword and I change email in .forword file. It doesn't send to new email. I use old email . It send. I guess that Network not send to other email. Do I guess true? Please Answer me. |
Hi,
The full command path is: /usr/sbin/sendmail -bv root is the other email address local on this machine? Also check /var/log/syslog. What exactly was/is the content of roots .forward file. Ian |
sendmail have not in path:/usr/sbin/.
I think that it have not this command. /var/log/syslog have not content. -rw-r--r-- 1 root 0 Jul 9 2000 syslog |
file : /var/mail/root
somprat@<mydomain>.net (reason: 550 Host unknown) ----- Transcript of session follows ----- 550 5.1.2 somprat@<mydomain>.net... Host unknown (Name server: mailhost.loxinfo.co.th: host not found) I don't know that why somprat@<mydomain>.net Host unknown. |
All times are GMT -5. The time now is 01:04 AM. |