Documentation

This is taking longer than usual. If nothing appears, refresh the page.

Documentation

{{docApp.title}}

{{docApp.description}}

Connect an AI assistant

Your AI assistant can read this documentation directly, so it answers from the current content instead of guessing. Add one of the servers below to your client — they use the Model Context Protocol (MCP). Each one covers a different body of content, so add the one you need.

The catalog did not load. Refresh the page to try again.

Loading…

How can we help?

{{docApp.searchError}}

Keep typing  - a search needs at least two characters

Searching in {{docApp.searchFilterBySpecificBookTitle}}

 {{docApp.currentResultsSearchText}}  in {{docApp.searchFilterBySpecificBookTitle}}
Found {{docApp.searchResponse.totalResultsAvailable}} matches. Showing the top {{docApp.searchResponse.results ? docApp.searchResponse.results.length : 0}}. Use a more specific search to further narrow down the results.
No documentation pages match this search, so all content types are shown. Most matches are in {{docApp.searchDocTypeRescue.best.name}}.
There is no book with the ID "{{docApp.searchBookRescue.bid}}", so the book filter from this link was ignored and results from all books are shown.

You have an odd number of " characters in your search terms - each one needs closing with a matching " character!
  • {{resultItem.title}} {{resultItem.matchedBy === 'semantic' ? 'semantic' : (resultItem.matchedBy === 'both' ? 'keyword + semantic' : 'keyword')}}

    {{resultItem.url}}

{{docApp.libraryHomeViewProduct.title || docApp.libraryHomeViewProduct.id}}

{{docApp.libraryHomeViewProduct.description}}

  1. {{book.title}}

Troubleshoot token refresh failure for email

A Token refresh failure occurs when Hornbill tries to use an existing OAuth refresh token to get a new access token from Microsoft Entra ID, but the request is rejected. This indicates an authentication issue rather than a problem with email protocols like IMAP, POP3, or SMTP.

Microsoft Entra ID often returns the following specific error:

AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication.

This error means Microsoft requires you to complete a fresh sign-in with multi-factor authentication (MFA) before it provides a new token. This usually happens if your administrator changed security policies or if Microsoft detects a change in your sign-in context, such as a new location or device.

Before you begin

  • Ensure you have administrative access to the Hornbill platform. You’ll need either the Admin Role or Super User Role, or a custom role with the manageKeysafe right.
  • Ensure you have the login credentials and MFA device for the Microsoft account used for the email integration.

Resolve the token failure

To fix this error, you must refresh the connection in your KeySafe record. This allows you to complete the required MFA prompt.

  1. Log in to your Hornbill instance.
  2. Navigate to Configuration > Platform Configuration > Security > KeySafe.
  3. Locate and open the KeySafe record used for your Microsoft 365 email integration.
  4. Select the option to revoke the existing OAuth token.
  5. Select Connect or Reconnect.
  6. When the Microsoft sign-in window appears, enter your credentials.
  7. Complete the MFA prompt as requested by Microsoft.
  8. Save the KeySafe record.

Expected result

Hornbill successfully obtains a new access token and refresh token. The “Token refresh failure” error stops, and the platform resumes pulling emails into the system.

Understanding the incoming mail route setting

You may see a setting labeled Enable processing of incoming mail on this route. It is important to understand when this setting applies to your configuration.

  • When to use it: Enable this only if Hornbill acts as your SMTP server to receive emails directly.
  • When it has no effect: This setting does not affect mailboxes that use IMAP or POP3.

If you use IMAP or POP3 integrations, your email is delivered to an external server like Microsoft 365 or Gmail first. Hornbill connects to that external server periodically to retrieve messages. In this scenario, the platform is not receiving direct SMTP traffic, so this setting does not change how your mail is processed.

In This Document