Operating System - Linux
1820071 Members
2425 Online
109608 Solutions
New Discussion юеВ

mailx is not working in Linux

 
Saravanakumar_1
New Member

mailx is not working in Linux

I have some issues in sending mail from mailx commandline. I am able to send mail to my personal mail id. But, If I give other's mail id (official ID) it is not working.

Please help me on this...

3 REPLIES 3
Ivan Ferreira
Honored Contributor

Re: mailx is not working in Linux

Please post the output of:

mailx -v user@domain

For a message that is sent and another that is not sent.

Also, the last messages in /var/log/maillog.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
George Liu_4
Trusted Contributor

Re: mailx is not working in Linux

post /var/log/maillog
Saravanakumar_1
New Member

Re: mailx is not working in Linux

Hi Ivan / George,

Thanks for your reply.

I am sending the output here.

Message that is not sent:
--------------------------------------------
bash-3.00# mailx -v saravanakumar.ss@gmail.com
Subject: Test mail
Hello
EOT
bash-3.00# saravanakumar.ss@gmail.com... Connecting to [127.0.0.1] via relay...
220 neptune.india.internal.net ESMTP Sendmail 8.13.4+Sun/8.13.3; Fri, 15 Dec 2006 10:41:56 +0530 (IST)
>>> EHLO neptune.india.internal.net
250-neptune.india.internal.net Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
>>> VERB
250 2.0.0 Verbose mode
>>> MAIL From: SIZE=75
250 2.1.0 ... Sender ok
>>> RCPT To:
>>> DATA
250 2.1.5 ... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
--------------------------------------------
Message that is sent:

bash-3.00# saravana.ss@samarthainfo.com... Connecting to [127.0.0.1] via relay...
220 neptune.india.internal.net ESMTP Sendmail 8.13.4+Sun/8.13.3; Fri, 15 Dec 2006 10:44:44 +0530 (IST)
>>> EHLO neptune.india.internal.net
250-neptune.india.internal.net Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
>>> VERB
250 2.0.0 Verbose mode
>>> MAIL From: SIZE=81
250 2.1.0 ... Sender ok
>>> RCPT To:
>>> DATA
250 2.1.5 ... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
--------------------------------------------

There is no such file maillog under /var/log directory.

Thanks,
Saravanan.