Outbound email with Google
-
I am trying to set up outgoing email using Google and I'm getting a
Connection timeouterror.Is there any way to determine what the problem is?

-
Can you verify, that you can reach the smtp.gmail.com server on port 587 just fine on the server? This can be tested on a ssh connection to your server and then attempting
telnet smtp.gmail.com 587Also you might want to take a look at the system logs at
journatlct list box, maybe they give more hints. -
Here are the logs when I try to connect to the server, I've manually changed my logs to point to
example.comAug 25 00:04:00 my.example.com node[23958]: Sat, 25 Aug 2018 00:03:59 GMT connect-lastmile Bad Request : Connection timeout Aug 25 00:04:00 my.example.com node[23958]: Box POST /api/v1/mail/example.com/relay 400 5003.952 ms - 64 Aug 25 00:04:00 my.example.com node[23958]: box:scheduler sync: synchronizing global state with installed app state Aug 25 00:04:00 my.example.com node[23958]: box:scheduler sync: doneWhen trying to telnet the command just freezes on the following
root@my:/home# telnet smtp.gmail.com 587 Trying 74.125.24.108... Trying 74.125.24.109... -
@scottharvey Are you on Google Cloud?
@girish I am using Digital Ocean, I found someone suggesting to contact Digital Ocean support in order to open port 587. I sent them an email and I'm just waiting for a reply.
-
After contacting Digital Ocean support and answering a few questions about my email usage they unblocked port 587 so I can send email now. Thanks for the help.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login