Mail Server problem to send mails on port 587
Mail Server problem to send mails on port 587
Hi,
I tried to configure mail server on a Droplet on Digital Ocean.
First, my port 25 if block for precautions spam, so I had to use port 587.
Second, I had to configure exim4 to explicity to use port 587.
In /etc/exim4/exim4.conf.template, I had to specify the port 587:
Then I can send mails except to Gmail and Hotmail.
Third, I follow the documentation of Vesta to secure me dont forget anything.
https://vestacp.com/docs/#how-to-setup-mail-server
In the try, something is wrong because after configure vanity nameserver, I cant send any mails.
The diference is, when I try to send to gmail or hotmail, I get this error:
/var/log/exim4/mailog
The mail is stack on queue:
When I send to other domain, the mail not send, not stuck on queue and no message on the logs.
Can anybody give me a guide to solve this problem? I can't figure out what I doing wrong.
Thanks in advance!
I tried to configure mail server on a Droplet on Digital Ocean.
First, my port 25 if block for precautions spam, so I had to use port 587.
Second, I had to configure exim4 to explicity to use port 587.
In /etc/exim4/exim4.conf.template, I had to specify the port 587:
Code: Select all
begin transports
remote_smtp:
driver = smtp
port = 587
#helo_data = $sender_address_domain
dkim_domain = DKIM_DOMAIN
dkim_selector = mail
dkim_private_key = DKIM_PRIVATE_KEY
dkim_canon = relaxed
dkim_strict = 0
Third, I follow the documentation of Vesta to secure me dont forget anything.
https://vestacp.com/docs/#how-to-setup-mail-server
In the try, something is wrong because after configure vanity nameserver, I cant send any mails.
The diference is, when I try to send to gmail or hotmail, I get this error:
/var/log/exim4/mailog
Code: Select all
2020-08-03 22:47:06 1k2jCS-0000bK-MP H=gmail-smtp-in.l.google.com [172.217.197.27] Connection timed out
Code: Select all
exim -Mvl 1k3PzY-00053V-PF
2020-08-05 20:26:56 Received from [email protected] H=localhost (webdomain.com) [127.0.0.1] P=smtp S=404
2020-08-05 20:29:06 H=gmail-smtp-in.l.google.com [172.217.197.27] Connection timed out
Can anybody give me a guide to solve this problem? I can't figure out what I doing wrong.
Thanks in advance!