How to set outgoing mail settings with a specific mail server for JIRA on a Google Cloud Virtual Machine?

Home / Uncategorized / How to set outgoing mail settings with a specific mail server for JIRA on a Google Cloud Virtual Machine?

Question:
I have a JIRA software on a Google VM (with Ubuntu 16.04) and I have a domain and a hosting (let’s say mydomain.com). Luckily, my website hosting provides me email hosting too.

But, I can’t send emails from my specific email host (which is email.mydomain.com) using JIRA on Google VM because I keep getting this error;

SocketTimeoutException: connect timed out.

I have checked the settings for JIRA Outgoing emails lots of time. However, I can’t find the solution..

Here is the configuration I made on my JIRA software for outgoing emails;

Name: Example Mail Server

From adress: mail.mydomain.com

SMTP port: 587

Timeout: 10000

TLS: Unchecked

Username: jira@mydomain.com

Password: *******

By the way, I already checked jira@mydomain.com to sent a couple of emails from the internal system of "mail.mydomain.com". In addition, I connected jira@mydomain.com to my Outlook account and sent emails with the same configuration above successfully.

I opened the ports 587 and 25 on my instance, too. With this configuration; Egress-> IP range:0.0.0.0/0 -> Allow traffic -> tcp:587; udp:587; tcp:25; udp:25

What do you think is the problem? Is it about Google VM’s firewall? (Because I’ve read an article on Google which was telling that Google VMs try not to allow email ports for 587 and 25)

If it is, how can I use the SendGrid to send emails from mail.mydomain.com?

Thank you for any help.


Answer:

Read more

Leave a Reply

Your email address will not be published. Required fields are marked *