Report this

What is the reason for this report?

sendemail on ubuntu timeout connection on gmail smtp

Posted on March 14, 2014

Hey people,

I am trying to use sendemail to test emails on my droplet on digital ocean and it is not working. I do the same command line on my machine and in other server hosted in linode. Both works.

$ sendemail -f myemail@gmail.com -t otheremail@gmail.com -u subject -m “message” -s smtp.gmail.com:587 -o tls=yes -xu myemail@gmail.com -xp ‘password’ Mar 14 20:18:10 digitalocean sendemail[23681]: ERROR => Timeout while connecting to smtp.gmail.com:587 There was no response after 60 seconds.

Can you help me?



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.

From my machine: <br> <br>$ telnet smtp.gmail.com 587 <br>Trying 74.125.137.108… <br>Connected to gmail-smtp-msa.l.google.com. <br>Escape character is ‘^]’. <br>220 mx.google.com ESMTP m9sm30167065yha.2 - gsmtp <br> <br>From my digital ocean droplet: <br> <br>$ telnet smtp.gmail.com 587 <br>Trying 74.125.131.108… <br>Trying 74.125.131.109… <br>Trying 2607:f8b0:400c:c03::6d… <br>telnet: Unable to connect to remote host: Network is unreachable <br> <br>Yeap, timeout too…

Same issue here. Any ideas when it will be resolved? Is there firewall or something?

Same for me…

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.