Email FAQs and troubleshooting notification emails

  • Release version: Xanadu
  • Updated August 1, 2024
  • 3 minutes to read
  • Summarize
    Summarized using AI
    This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.

    Summary of Email FAQs and troubleshooting notification emails

    This guide helps ServiceNow customers understand how to monitor, troubleshoot, and resolve issues related to notification emails within their instance. It explains how to use logs and diagnostics to verify if emails are sent, received, or failed, and provides references to detailed troubleshooting resources for inbound and outbound email problems.

    Show full answer Show less

    Log Checking Scenarios

    • Check if a notification email was sent: Review the Sent and Failed System Mailboxes to confirm delivery or failure notifications.
    • Troubleshoot individual email failures: Examine the message log and the Error string field on the email record. Note that some email servers may not return error strings.
    • Email not received by end user: Look in the Junk System Mailbox for returned email notifications and check the email log for “received-ignored” types. Also verify the message log for recipient inclusion/exclusion details.

    Email FAQs and Troubleshooting Resources

    Several knowledge base (KB) articles and video series are available to address common email issues such as:

    • Inbound email problems and instances not receiving emails.
    • Outbound email sending issues.
    • Special cases like Outlook sending RTF-formatted emails that create empty incident records.
    • Emails incorrectly set to “send-ignored” type.
    • Duplicate emails generated by the instance.
    • Issues with SMTP sender jobs being stuck.
    • Connection problems with SMTP servers like smtp.office365.com and OAuth authentication errors.
    • Inbound email processing or Email Reader/SMTP Sender jobs being stuck or running excessively long.

    SMTP Retries and Exponential Back-off

    The SMTP Sender job manages outbound email delivery and handles retries for transient failures (4xx status codes) using an exponential back-off schedule (intervals of 1, 5, 10, 20, 40, 60, 120 minutes). Retries continue until a configured lookback period expires. Permanent failures (5xx codes) do not trigger retries. Retried emails are marked with the type send-retry-backoff. Address validation errors trigger a different retry mechanism with fixed 30-minute intervals and email type send-retry-delayed.

    Email Diagnostics and Logs

    The Diagnostics and Connection page provides a snapshot of the email system’s health, including configuration status, scheduled jobs, and account connections affecting email flow. The system email log tracks all emails created or received by the instance, while system mailboxes offer filtered views to streamline troubleshooting. For individual emails, related message logs and the Error string field provide granular diagnostic information.

    Related Concepts and Next Steps

    To fully manage notifications, customers can also explore related features such as email templates, layouts, retention policies, watermarks, digests, and domain separation. Practical tasks include creating notification categories, email notifications, and parsing email threads to customize and optimize email communication within the ServiceNow platform.

    Logs and diagnostics are provided to help determine whether notification emails are being sent and received successfully, what any issues are, and who receives the email.

    Diagnostics help monitor the overall health of the system and troubleshoot general problems, such as not receiving any incoming mail. Logs help identify problems with individual emails, and different logs are useful for diagnosing different types of problems.

    Log checking scenarios

    Problem Log
    Need to check whether an individual notification email was successfully sent Check the Sent System Mailbox for that email. Also check the Failed System Mailbox for failure notifications.
    Individual email failed
    • Check the message log of the individual email.
    • Check the Error string field of the email record.

      Warning:
      Some email servers do not return error strings
    Email not received by end user
    • Check the Junk System Mailbox for notifications about returned emails. These emails also appear in the Emails log with a Type of received-ignored.
    • Check the Error string field of the email record.

      Warning:
      Some email servers do not return error strings
    • Check the message log of the individual email for the reasons different recipients were included or excluded.

    Email FAQs

    Troubleshooting resources

    See the following resources on troubleshooting inbound and outbound email problems.

    Error or symptom Solution
    Inbound Email FAQ See KB0957760.
    Instance not receiving inbound email See Inbound email troubleshooting, ServiceNow KB0524472 and KB0520595. These KB articles also provide links to a video series on troubleshooting inbound emails.
    Instance not sending outbound email See Troubleshooting Outbound email, ServiceNow KB0521382. This KB article also provides links to a video series on troubleshooting outbound emails.
    Email from Outlook produces an empty Incident record containing an attachment named winmail.dat. Configure the local Outlook client or Exchange server not to send Rich Text formatted (RTF) data to the instance.
    Emails are getting set to type send-ignored for no obvious reason See KB0790932.
    Duplicate emails generated by the instance See Troubleshooting duplicate emails generated by the instance, KB0529413.
    SMTP Sender Job Stuck See SMTP Sender Job Stuck > 30 Mins alert, KB0755061.
    Connection to smtp.office365.com failed See KB0825391.
    IMAP with OAuth error AUTHENTICATE failed See KB0963959.
    Error connecting the POP email account on secure port See KB0829289.
    Inbound email processing is stuck alerts See KB0855277.
    Email Reader / SMTP Sender job stuck See KB0679998.
    Email Reader Job stuck/running for more than 2 hours alerts See KB0755063.
    SMTP retries

    The SMTPSender job is responsible for sending emails from the instance and at times there can be delivery failures during transmission.

    Emails that aren't successfully delivered might need retries. Exponential back-off retries is a mechanism to redeliver them in the interval (1, 5, 10, 20, 40, 60, 120, 120) between the retries. The exponential retries continue until the lookback period mentioned in the glide.email.smtp.claim.lookback.hrs system property is lapsed.

    The retries are attempted for 4xx status codes and for all other status codes such as 5xx are considered as permanent failure. The glide.smtp.fail_message_ids and glide.smtp.defer_retry_ids system properties aren't considered.

    Retried emails type is set to send-retry-backoff.

    Exponential back-off retries

    Emails that aren't successfully delivered might need retries. Exponential back-off retries is a mechanism to redeliver them in the interval (1, 5, 10, 20, 40, 60, 120, 120) between the retries. The exponential retries continue until the lookback period mentioned in the glide.email.smtp.claim.lookback.hrs system property is lapsed.

    The retries are attempted for 4xx status codes and fail for 5xx status codes during the email delivery. The glide.smtp.fail_message_ids and glide.smtp.defer_retry_ids system properties aren't considered.

    Retried emails type is set to send-retry-backoff.
    Note:
    Address validation errors that occur during the email delivery are handled differently. The type of email record is set to send-retry-delayed and the email delivery is retried in fixed intervals of 30 minutes until the lookback period is lapsed.