LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   about linux mail command. (can not get undelivered message) (https://www.linuxquestions.org/questions/linux-server-73/about-linux-mail-command-can-not-get-undelivered-message-4175420597/)

gchen 08-06-2012 03:11 AM

about linux mail command. (can not get undelivered message)
 
"mail -s test root@baddomain.net < /tmp/test.in" (/tmp/test.in is a text file which has mail contents)

It is a bad address, but I can not get undeliverd message


please help solving,

thanks, firstly.

KinnowGrower 08-06-2012 06:40 PM

did you checked /var/mail/mail.log. ?? what is says?? may be delivered??

gchen 08-06-2012 09:27 PM

Quote:

Originally Posted by KinnowGrower (Post 4747589)
did you checked /var/mail/mail.log. ?? what is says?? may be delivered??

sorry for can not find this file. (and the other machine, which works well, is also no this file).

I am trying another machines (which can work well) to analyze this issue.

Welcome additional replies.

thanks.

: )

gchen 08-06-2012 11:23 PM

after reinstall OS with choosing everything, it is OK (can work well).

but I truly do not know, why it is.

and now, I can continue for my main work, and left this issue for us to discus.

welcome any member to giving suggestions (I have another machine, which also can repeat this issue).

: )

bathory 08-08-2012 12:33 AM

The logfile you should look for, is /var/log/maillog (or /var/log/mail.log depending on distro)

gchen 08-08-2012 12:55 AM

Quote:

Originally Posted by bathory (Post 4748640)
The logfile you should look for, is /var/log/maillog (or /var/log/mail.log depending on distro)

ok, yes it is.

after analyzing, I fixed: it need use IP address through DHCP. If hard code IP address, it can not.


All times are GMT -5. The time now is 09:14 PM.