Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed qmail and I am able to send and receive emails when i add the address within the network in the /var/qmail/control/smtproutes file.

Say I create a virtual domain in my windows machine as and add "" in smtproutes, then email delivery is successful.

But when i directly send emails to outside domain, i get error " Sorry,_I_wasn't_able_to_establish_an_SMTP_connection".

Is this a firewall issue? What could I be missing?


share|improve this question

migrated from Aug 26 '09 at 19:58

This question came from our site for professional and enthusiast programmers.

Does this belong on SuperUser? – kajaco Aug 26 '09 at 18:19
No, it's a mailserver question. Def. here. Is DNS working on the box? – Cian Aug 26 '09 at 20:00
  1. Eliminate the firewall issue by testing that you can actually connect out to an external mail server's port 25 from your mail server. You can do this by telnet <external mail server> 25 and see if you get the welcome message.
  2. Eliminate the SSL issue by testing that the connection is actually accepting clear-text transmissions. It is possible that STARTTLS is required.
  3. Still thikning about it. Will edit my answer later.
share|improve this answer

How many NICs are in this server? It's possible that qmail is trying to make an outbound connection on a non-functioning NIC or using a route that doesn't exist.
What does netstat -r show?

share|improve this answer

It could well be a firewall issue. You will need outgoing port 25 opened to ANY destination address on the firewall.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.