LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mail command issue? (https://www.linuxquestions.org/questions/linux-newbie-8/mail-command-issue-771664/)

your_shadow03 11-26-2009 03:52 AM

mail command issue?
 
I am sending a mail from my RHEL Machine and all it response positive:
Code:

[root@build ~]# echo "Hello" | mail -v -s "hi" ar2@ient.com
ar2@ient.com... Connecting to [127.0.0.1] via relay...
220 build.ient.com ESMTP Sendmail 8.13.1/8.13.1; Thu, 26 Nov 2009 15:10:09 +0530
>>> EHLO bbuild.ient.com
250-build.ient.com Hello localhost.localdomain [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH DIGEST-MD5 CRAM-MD5
250-DELIVERBY
250 HELP
>>> MAIL From:<root@build.ient.com> SIZE=43 AUTH=root@build.ient.com
250 2.1.0 <root@build.ient.com>... Sender ok
>>> RCPT To:<ar2@ient.com>
>>> DATA
250 2.1.5 <ar2@ient.com>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 nAQ9e99Z024196 Message accepted for delivery
ar2@ient.com... Sent (nAQ9e99Z024196 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 build.ient.com closing connection
[root@build ~]#

any idea how gonna I troubleshoot?
It is using relay.
Is there any tool I can trace out where the mail is stucking.

The Maillog are:
Code:

Nov 26 15:07:06 build.com sendmail[24187]: nAQ9b0Up024185: to=<ar2@ient.com>, ctladdr=<root@build.com.ient.com> (0/0), delay=00:00:06, xdelay=00:00:06, mailer=esmtp, pri=120360, relay=delhub1.ient.com. [10.210.55.18], dsn=5.0.0, stat=Service unavailable
Nov 26 15:07:06 build.com sendmail[24187]: nAQ9b0Up024185: nAQ9b6Up024187: DSN: Service unavailable
Nov 26 15:07:06 build.com sendmail[24187]: nAQ9b6Up024187: to=<root@build.com.ient.com>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31626, dsn=2.0.0, stat=Sent
Nov 26 15:10:09 build.com sendmail[24195]: nAQ9e9rN024195: from=root, size=43, class=0, nrcpts=1, msgid=<200911260940.nAQ9e9rN024195@build.com.ient.com>, relay=root@localhost
Nov 26 15:10:09 build.com sendmail[24196]: nAQ9e99Z024196: from=<root@build.com.ient.com>, size=360, class=0, nrcpts=1, msgid=<200911260940.nAQ9e9rN024195@build.com.ient.com>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Nov 26 15:10:09 build.com sendmail[24195]: nAQ9e9rN024195: to=ar2@ient.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30043, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (nAQ9e99Z024196 Message accepted for delivery)
Nov 26 15:10:10 build.com sendmail[24198]: STARTTLS=client, relay=lonhub1.ient.com., version=TLSv1/SSLv3, verify=FAIL, cipher=AES128-SHA, bits=128/128
Nov 26 15:10:16 build.com sendmail[24198]: nAQ9e99Z024196: to=<ar2@ient.com>, ctladdr=<root@build.com.ient.com> (0/0), delay=00:00:07, xdelay=00:00:07, mailer=esmtp, pri=120360, relay=lonhub1.ient.com. [10.225.55.18], dsn=5.0.0, stat=Service unavailable
Nov 26 15:10:16 build.com sendmail[24198]: nAQ9e99Z024196: nAQ9eG9Z024198: DSN: Service unavailable
Nov 26 15:10:16 build.com sendmail[24198]: nAQ9eG9Z024198: to=<root@build.com.ient.com>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31626, dsn=2.0.0, stat=Sent

[/code]

bathory 11-26-2009 04:35 AM

Hi,

The mail is not accepted by lonhub1.ient.com. [10.225.55.18] for some reason.
Maybe you can find the reason in the dsn sent back to you, or in the logs of lonhub1.ient.com if you have access to them.
Else try to telnet directly to lonhub1.ient.com on port 25 and see if you can send an email using the same from: and to: addresses.

Regards

your_shadow03 11-26-2009 05:01 AM

Ohh..Got the Solution..
the DS Entry in sendmail.cf was going missing.
Added the Relay hostname and now its working ;>


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