Cannot connect to SMTP server - Email Account

Richo1
Tera Expert

Hello,

I have configured our test instance to use our company SMTP server by creating an email account record. I have configured OAUTH 2.0, which is functioning correctly.

When I conduct a connection test I receive a cannot connect to SMTP server error message. This is connecting to smtp.office365.com on port 587 using SSL/TLS.

If I run the connection test to smtp.office365.com on port 25 with no connection security I receive a successful connection message.

So just wondering if there is something I have missed with regards to SSL/TLS, maybe on our tenant side. 

Thanks.

8 REPLIES 8

New Developer_S
Giga Sage

Hi ,

I am facing similar issue. Could connect to SMTP . This is connecting to smtp.office365.com on port 587 using SSL/TLS.

what is the final resolution for this ? i am confused about the solution . Can anyone please explain .

My understanding is that there is a permissive list of source IPs inside the O365 configuration and you need to permit the connection from ServiceNow on that end.

 

Hope this helps,

 

Richard

Damian Martinez
Mega Sage

Hello Everyone,
Has somebody manage to get this working?
I have 3 instances, dev and prod works ok, however for test instance I get the same error.
In the node logs I get  the same info message is there a way to change the log to debug to get more information?
All I get is I cannot connect to the smtp server as user that is all.
I also assigned the correct license, still not working.
Thanks in advance

Hi Damian,

 

Were you able to connect successfully via smtp.office365.com on port 25 with no connection security? The main issue I had was I needed to assign an M365 license to the user mailbox that I was using but it sounds like you have already done that.