LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Send mail to root but it send to other email (https://www.linuxquestions.org/questions/solaris-opensolaris-20/send-mail-to-root-but-it-send-to-other-email-731591/)

smart_jija 06-09-2009 02:45 AM

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.

IW2B 06-09-2009 04:10 AM

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

smart_jija 06-11-2009 05:57 AM

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.

IW2B 06-18-2009 08:06 AM

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

smart_jija 06-29-2009 03:51 AM

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

smart_jija 07-01-2009 01:33 AM

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.