LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-26-2009, 04:52 AM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,462
Blog Entries: 6

Rep: Reputation: 51
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]

Last edited by your_shadow03; 11-26-2009 at 04:55 AM.
 
Old 11-26-2009, 05:35 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,882

Rep: Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608
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
 
Old 11-26-2009, 06:01 AM   #3
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,462
Blog Entries: 6

Original Poster
Rep: Reputation: 51
Ohh..Got the Solution..
the DS Entry in sendmail.cf was going missing.
Added the Relay hostname and now its working ;>
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian etch - Unable to send mail from command line or from php mail command lqforumuser Linux - Newbie 1 03-01-2009 07:56 AM
can mail command be used to send mail onto global mail servers like yahoo etc dale_chip Linux - Newbie 4 08-12-2008 09:33 AM
Is it my PHP command or a server issue with mail? DeeH Linux - Newbie 1 11-07-2007 03:44 PM
Sendmail issue (did not issue MAIL/EXPNVRFY/ETRN ...) Blackout_08 Linux - Server 0 08-08-2007 02:10 PM
mail command issue ...!!! balavignesh Linux - Newbie 2 12-27-2005 09:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration