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
LVL 6
GeyybeccaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jar3817Commented:
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 sendmail.mc and see if this server can deliver to external domains, or if you get the same problem.

Post your sendmail.mc file so we can see how you have it setup.
0
GeyybeccaAuthor Commented:
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.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Email Servers

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.