Question : Deferred: Connection timed out sendmail

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

Answer : Deferred: Connection timed out sendmail

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 192.168.0.201 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.
Random Solutions  
 
programming4us programming4us