Cannot connect to SMTP server - Email Account
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-30-2022 09:30 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-18-2022 01:50 AM
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 .

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-18-2022 02:59 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2023 04:32 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2023 11:36 AM
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.