sendemail on ubuntu timeout connection on gmail smtp

  • Posted 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 -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?


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://

Submit an 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.

This comment has been deleted

Well, I just subscribed to this service to create a host for my domain and website and I am having this problem.

The primary purpose of my server is exactly hosting my email and it’s essential that it can send emails to Gmail since most of my clients have accounts there…

I can see this thread was created on March 14 and I wanted to ask for the people that were having problems if they still do… Because this is clearly a routing issue and supposedly it woulndn’t take months to solve.

tracepath 1?: [LOCALHOST] pmtu 1500 1: 0.445ms 1: 0.499ms 2: 0.386ms 3: 0.593ms asymm 2 4: no reply 5: no reply 6: no reply 7: no reply

Same here. Just opened a ticket.

Same problem.

Same for me…

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

same issue. last a week.

Same issue here. No idea what is going on. Can log in with Telnet, but sending mail times out.

I have the same issue trying to reach google and amazon ses SMPT services, it is annoying.