We help IT Professionals succeed at work.
Get Started

sendmail not sending outbound email - but accepting inbound email

jvossler
jvossler asked
on
2,666 Views
Last Modified: 2012-05-12
I have sendmail running on Solaris 10. It is correctly handling incoming email for 4 domains.

All mail that is attempting to send outbound form this server fails with "Deferred: Connection timed out" error connecting to itself.

All DNS entries are correct and the firewall is  not involved, and the firewall logs contain no indications of rejecting, denying or stopping connections.

I can telnet to port 25 using the fqdn, short name, "localhost" or 127.0.0.1.

All the mail is still queued up for delivery.

Here is a sample sendmail dialog with a test message along with mailq output

Spider:/etc/mail> echo "test 5" | mailx -v -s "test 5" -r john@vosslers.net john@vosslers.net
john@vosslers.net... Connecting to [127.0.0.1] via relay...
220 smtp.itinfrastructures.net ESMTP Sendmail 8.13.8+Sun/8.13.8; Wed, 2 Nov 2011 08:31:12 -0600 (MDT)
>>> EHLO Spider.itinfrastructures.net
250-smtp.itinfrastructures.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:<john@vosslers.net> SIZE=64
250 2.1.0 <john@vosslers.net>... Sender ok
>>> RCPT To:<john@vosslers.net>
>>> DATA
250 2.1.5 <john@vosslers.net>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
050 <john@vosslers.net>... Connecting to smtp.secureserver.net. via esmtp...
050 <john@vosslers.net>... Connecting to mailstore1.secureserver.net. via esmtp...
050 <john@vosslers.net>... Deferred: Connection timed out with mailhost.itinfrastructures.net
250 2.0.0 pA2EVCmr000595 Message accepted for delivery
john@vosslers.net... Sent (pA2EVCmr000595 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 smtp.itinfrastructures.net closing connection



Spider:/etc/mail> mailq
                /var/spool/mqueue (16 requests)
-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
pA2EVCmr000595*       7 Wed Nov  2 08:31 <john@vosslers.net>
                 (Deferred: Connection timed out with mailhost.itinfrastructur)
                                         <john@vosslers.net>
pA2DH7oO000052        7 Wed Nov  2 07:17 <john@vosslers.net>
                 (Deferred: Connection timed out with mailhost.itinfrastructur)
                                         <john@vosslers.net>
pA2D8uB8029968        7 Wed Nov  2 07:08 <john@vosslers.net>
                 (Deferred: Connection timed out with mailhost.itinfrastructur)
                                         <john@vosslers.net>
pA2CuNWa029833       29 Wed Nov  2 06:56 <john@vosslers.net>
                 (Deferred: Connection timed out with mailhost.itinfrastructur)
                                         <3034375962@messaging.sprintpcs.com>
pA2CthLg029816       29 Wed Nov  2 06:55 <john@vosslers.net>
                 (Deferred: Connection timed out with mailhost.itinfrastructur)
                                         <3038875478@messaging.sprintpcs.com>
pA2Cu3pZ029823       29 Wed Nov  2 06:56 <john@vosslers.net>
                 (Deferred: Connection timed out with mailhost.itinfrastructur)
                                         <3038875413@messaging.sprintpcs.com>
pA2CkQQi029686        5 Wed Nov  2 06:46 <root@Spider.itinfrastructures.net>
                 (Deferred: Connection timed out with mailhost.itinfrastructur)
                                         <john@vosslers.net>
pA2CrkqI029775        5 Wed Nov  2 06:53 <root@Spider.itinfrastructures.net>
                 (Deferred: Connection timed out with mailhost.itinfrastructur)
                                         <john@vosslers.net>
pA2Ct2Im029800       29 Wed Nov  2 06:55 <john@vosslers.net>
                 (Deferred: Connection timed out with mailhost.itinfrastructur)
                                         <john@vosslers.net>
pA2CtNEp029809       29 Wed Nov  2 06:55 <john@vosslers.net>
                 (Deferred: Connection timed out with mailhost.itinfrastructur)
                                         <nancy@vosslers.net>
pA2CgPhL029646       24 Wed Nov  2 06:42 <john@vosslers.net>
                 (Deferred: Connection timed out with mailhost.itinfrastructur)
                                         <3038875413@messaging.sprintpcs.com>
pA2BQQoh029159       24 Wed Nov  2 05:26 <john@vosslers.net>
                 (Deferred: Connection timed out with mailhost.itinfrastructur)
                                         <3034375962@messaging.sprintpcs.com>
pA2BQ6HW029152       24 Wed Nov  2 05:26 <john@vosslers.net>
                 (Deferred: Connection timed out with mailhost.itinfrastructur)
                                         <3038875413@messaging.sprintpcs.com>
pA2BP5WZ029130       24 Wed Nov  2 05:25 <john@vosslers.net>
                 (Deferred: Connection timed out with mailhost.itinfrastructur)
                                         <john@vosslers.net>
pA2BPPtf029138       24 Wed Nov  2 05:25 <john@vosslers.net>
                 (Deferred: Connection timed out with mailhost.itinfrastructur)
                                         <nancy@vosslers.net>
pA2BPk0l029145       24 Wed Nov  2 05:25 <john@vosslers.net>
                 (Deferred: Connection timed out with mailhost.itinfrastructur)
                                         <3038875478@messaging.sprintpcs.com>
                Total requests: 16
Spider:/etc/mail>

Open in new window

Comment
Watch Question
Commented:
This problem has been solved!
Unlock 1 Answer and 17 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE