LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Unable to send mail using mail command (https://www.linuxquestions.org/questions/linux-software-2/unable-to-send-mail-using-mail-command-525178/)

faruque.ahmed 02-03-2007 03:02 AM

Unable to send mail using mail command
 
Hi,
I am tring to send mail using mail command.
But failed


Code:

[root@oper-db ~]# ps -ef|grep mail
root      2945    1  0 Feb01 ?        00:00:00 sendmail: accepting connections
smmsp    2990    1  0 Feb01 ?        00:00:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue
root    12401 12120  0 23:47 pts/1    00:00:00 grep mail
[root@oper-db ~]# mail faruque.ahmed@mycompanydomain.com < install.log
[root@oper-db ~]# ps -ef|grep mail
root      2945    1  0 Feb01 ?        00:00:00 sendmail: accepting connections
smmsp    2990    1  0 Feb01 ?        00:00:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue
root    12405    1  0 23:47 pts/1    00:00:00 send-mail -i faruque.ahmed@mycompanydomain.com
root    12407 12120  0 23:47 pts/1    00:00:00 grep mail
[root@oper-db ~]# ps -ef|grep mail
root      2945    1  0 Feb01 ?        00:00:00 sendmail: accepting connections
smmsp    2990    1  0 Feb01 ?        00:00:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue
root    12405    1  0 23:47 pts/1    00:00:00 send-mail -i faruque.ahmed@mycompanydomain.com
root    12409 12120  0 23:48 pts/1    00:00:00 grep mail
[root@oper-db ~]#
[root@oper-db ~]# ps -ef|grep mail
root      2945    1  0 Feb01 ?        00:00:00 sendmail: accepting connections
smmsp    2990    1  0 Feb01 ?        00:00:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue
root    12421 12120  0 23:50 pts/1    00:00:00 grep mail
You have new mail in /var/spool/mail/root
[root@oper-db ~]#


My server is RHEL 4 AS on x86

There is no mail in my mailbox
Would you please help me to solve the problem?
Regards
Faruque

MensaWater 02-03-2007 10:29 AM

At the very end you got a new mail message in root which was almost certainly an error about the command you tried to execute.

Just type "mail" as root and read the root mail you got to see what it is complaining about.


All times are GMT -5. The time now is 03:17 AM.