Slow processing time to smtp.office365.com

Niklas _sth
Tera Contributor

We have configured our outgoing mail to use smtp.office365.com (STARTTLS 587 and OAuth 2.0) and it works (mail are sent as they should).

 

But we have seen that the processing time is around 8000-10000ms and even greater some times. Even got a automated warning from SN about "SMTP Sender Job Stuck".

 

Is that "normal" or something that is missconfigured on ServiceNow or Microsoft side? Enabled debug logging but nothing in the logs I have found.


3 REPLIES 3

Daniel R2
Kilo Sage

@Niklas _sth - Hi Niklas, did you manage to resolve this issue, we are facing a similar issue. 

 

We were struggling to get a successful SMTP test connection, however once the processing time was at 4ms and also 5000ms we got successful test connections and was operational in email diagnostics. 

 

However, the processing time is now currently sitting at around 20,000ms, the email sending is non-operational and smtp test connection is not successful. So we believe its this processing time that is causing it to be non-operational and cauisng the unsuccesful test connection

Rachel Gomez
Giga Expert

Steps to speed up my SMTP server-

Open up multiple simultaneous SMTP connections (we allow up to 40).
Send multiple emails on each SMTP connection. Some software only sends 1 email per SMTP connection, then disconnects and reconnects, creating a lot of additional overhead. 
Use the SMTP Pipelining protocol.

 

Regards,

Rachel Gomez

KKrabbenhoft
Tera Guru

@Daniel R2 ,
My team WAS having a complete stop of send/receive in our production instance. Yet we were not notified by SN that I am able to see. 

We determined this was because of the token set https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0823190
We also checked the scheduled jobs named "Email Reader, SMTP Sender" from filter navigator> scheduled Jobs> scheduled jobs today. filter by "NAME" is "Reader"OR"SMTP Sender" 
Make sure they are running. 
Hope this helps. If anyone knows how to monitor when a case is created in SN regarding my instance for the notification "SMTP Sender Job Stuck" guidance would be appreciated.