Report this

What is the reason for this report?

Unable to connect to smtp.gmail.com (Network is unreachable)

Posted on January 18, 2018

Hello, I am unable to connect to smtp.gmail.com:587 from droplet. Here is log from telnet:

altera@genius-camp:~$ telnet smtp.gmail.com 587 Trying 74.125.206.108… Trying 74.125.206.109… Trying 2a00:1450:400c:c04::6d… telnet: Unable to connect to remote host: Network is unreachable

This droplet was created from snapshot of another droplet from different account and on the old one this works fine

Can you help me with this?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Certain accounts may have outgoing blocks on SMTP ports, you may need to contact DO support to see if that’s the case on your account:

https://www.digitalocean.com/company/contact/

Yes me to

telnet: Unable to connect to remote host: Network is unreachable

If you are using Postfix, you have to change a parameter in Postfix configuration, inet_protocols to ipv4:

postconf -e inet_protocols=ipv4

and restart/reload the postfix service

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.