agdsites
By:
agdsites

email not sent other server - Ubuntu Exim Nginx Vesta

September 2, 2016 795 views
Nginx DNS Email Ubuntu

I have the Ubuntu 14.0.5 droplet (X64) and installed Vesta Panel with Ngynx by following the link:

https://www.digitalocean.com/community/tutorials/how-to-install-vestacp-and-set-up-a-website-on-ubuntu-14-04

I have problems sending emails. I created an e-mail in Vesta Panel called myemail@mydomain.com.br and other otheremail@mydomain.com.br called. Emails normally receive. But there is failure when sending e-mail recipient is in another domain.

Example:
Send email myemail@mydomain.com.br to otheremail@mydomain.com.br (Ok - Success)
Send email myemail@mydomain.com.br to example@hotmail.com (Not Ok - Failure)

My var/log/exim4:

2016-09-02 21:25:09 1bfvnF-0006pC-LQ mx1.hotmail.com [XXXXXXX] Connection timed out
2016-09-02 21:25:09 1bfvnF-0006pC-LQ == example@hotmail.com R=dnslookup T=remote_smtp defer (110): Connection timed out
sender verify defer for example@hotmail.com: host lookup did not complete


The file etc/exim4/exim4.conf.template
[...]
dnslookup:

driver = dnslookup

domains = !+local_domains

transport = remote_smtp

no_more

dclocaldelivery='mailspool'

In Vesta Panel, the firewall is:

ACCEPT
PORT: 25,465,587,2525
IP: 0.0.0.0/0
TCP


Please, I'm already there several hours trying and I'm not getting.
If you can give me step by step what I have to do.
PS: I do not have advanced knowledge in linux

1 Answer

Hi! Can you post the output of the following command? It should check whether or not you are able to access port 25 on remote servers. SMTP is sometimes disabled by default on some accounts so I'm assuming that that's what's going on.

nc -vz smtp.gmail.com 25

If you do not get a 'connection successful' message, please open a support ticket so that the team can take care of that for you!

Have another answer? Share your knowledge.