QMail unable to send email to gmail.com or any address outside the network

emailunix

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 abc.com and add "abc.com:" 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?

Thanks,

Best Answer

  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.
Related Topic