Deferred: Connection timed out sendmail
Posted on 2008-11-12
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 sendmail.cf file via the sendmail.mc file so that the server listens on 192.168.0.85 (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 192.168.0.201 (spamtitan.mydomain.com) I have added spamtitan.mydomain.com to the etc/hosts file as well as defining it as the smarthost in sendmail.cf
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 spamtitan.mydomain.com) this is not a firewall issue as no firewall is in the way (Switched of in Redhat) also I am able to ping spamtitan.mydomain.com 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