Deferred: Connection timed out sendmail

Posted on 2008-11-12
Last Modified: 2013-12-18
I have set up a Redhat Enterprise 5.2 server which hosts a number of websites that require the ability to send emails. I have sendmail installed from the redhat CD's I have altered the file via the file so that the server listens on (local NIC IP address)
NOTE: this server has no need to send emails to external domains, it simply needs to forward all emails to my mail gateway which is on the same network ( I have added to the etc/hosts file as well as defining it as the smarthost in
I can telnet to the servers IP address on port 25 and it accepts email. However when issueing the sendmail -bp all emails are stuck in the queue with the following message
(Deferred: Connection timed out with this is not a firewall issue as no firewall is in the way (Switched of in Redhat) also I am able to ping and can telnet from the redhat box to spamtitan on port 25 and send emails sucessfully.

I am now stumped so any help greatfully recieved
Question by:Geyybecca
    LVL 26

    Expert Comment

    Does your spamtitan box have strict requirements for connecting (like valid reverse dns and all that)? Does your redhat box comply with all the requirements?

    Try commenting out the smarthost line in and see if this server can deliver to external domains, or if you get the same problem.

    Post your file so we can see how you have it setup.
    LVL 6

    Accepted Solution

    Thanks I actually worked this out for myself - turned out to be DNS related in as much as the redhat box had an external DNS server specified. Even though I had added spamtitan to the hosts file SENDMAIL was still doing a DNS look-up and reverse look up when it performed the reverse lookup on it bombed. I have now pointed it to an internal DNS server which has the required records for spamtitan within DNS and now mail flows freely.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Microsoft Outlook is not just an email client but it is full featured Personal Information Manager. But sometimes Outlook gets disconnected and you simply can’t access it. What steps can you perform before calling IT support? In this article we will…
    Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
    In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…
    The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    26 Experts available now in Live!

    Get 1:1 Help Now