sendemail on ubuntu timeout connection on gmail smtp

Posted March 14, 2014 22.5k views
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 -t -u subject -m "message" -s -o tls=yes -xu -xp 'password' Mar 14 20:18:10 digitalocean sendemail[23681]: ERROR => Timeout while connecting to There was no response after 60 seconds. Can you help me?
1 comment
  • I had a similar problem, then I change the name of the host for the IP address. This resolved the problem.
    Change from ssl:// to ssl://

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.

Submit an Answer
14 answers
telnet 587
timeout too?
From my machine:

$ telnet 587
Connected to
Escape character is '^]'.
220 ESMTP m9sm30167065yha.2 - gsmtp

From my digital ocean droplet:

$ telnet 587
Trying 2607:f8b0:400c:c03::6d...
telnet: Unable to connect to remote host: Network is unreachable

Yeap, timeout too...
Please open up a support ticket so we can look into it. Thanks!
From my linode account:

$ telnet 587
Connected to
Escape character is '^]'.
220 ESMTP 44sm32431237yhp.17 - gsmtp

Thanks Kamal, I am open the ticket right now.
I have the same issue trying to reach google and amazon ses SMPT services, it is annoying.
Same issue here. No idea what is going on. Can log in with Telnet, but sending mail times out.
same issue. last a week.
Same issue here. Any ideas when it will be resolved? Is there firewall or something?

Same for me…

Previous 1 2 Next