Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

I used mail, its exit status is zero but the recepient is not receiving any mail. What could be the problem?

I used this code:

mylinsystem:/etc/mail # mail -v -s "test" </tmp/txt Connecting to [] via relay...
220 ESMTP Sendmail 8.13.6/8.13.6/SuSE Linux 0.8; Thu, 27 Nov 2014 00:25:47 +0530
>>> EHLO Hello localhost [], pleased to meet you
250 HELP
>>> MAIL From:<> SIZE=228
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
>>> .
250 2.0.0 sAQItljm015768 Message accepted for delivery Sent (sAQItljm015768 Message accepted for delivery)
Closing connection to []
>>> QUIT
221 2.0.0 closing connection

If run mailq then I see the following message:

sAPLEEcO028725    14849 Wed Nov 26 02:44 <>
                 (Deferred: Connection timed out with [])
share|improve this question
Connection timed out with []) Is that a copy-paste error, or something more sinister? –  fkraiem Nov 27 '14 at 11:25

1 Answer 1

mail's exit status refers to local processing only. It means: "This mail has been accepted bei the local MTA." It cannot say anything about the success of delivering the mail as that has not even been tried at this point.

share|improve this answer
Thanks. Why delivering is not yet attempted. Can you please point out something so that i can invetigate in that direction. Thanks for your help. –  user120969 Nov 27 '14 at 9:16
It's how mail works. mail is sent to one server, then another, and another, till it reaches the end. If you want to check that it's 'leaving' you end check /var/log/mail.log (or similar) has good info. –  coteyr Nov 27 '14 at 9:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.