My VPS (DigitalOcean) provider blocked SMTP on IPv6 by default: (
I had to disable IPv6 on the server with the following configuration:
Apply Settings:
$ sysctl -p
Uncomment the following line in /etc/gai.conf to prefer IPv4:
precedence ::ffff:0:0/96 100
And remove IPv6 DNS from /etc/resolv.conf :
nameserver 2001:4860:4860::8844
Then restart the application and Nginx (optional)
source share