Azure Email Tenant Application¶
Connect your Microsoft 365 mailboxes to Daktela e-mail queues through one app registration in your Microsoft tenant β no personal sign-in per mailbox and no SMTP passwords.
What it does and when to use it¶
The Azure Email Tenant Application lets Daktela read and send e-mail in your Microsoft 365 (Exchange Online) mailboxes through the Microsoft Graph API. Instead of a person signing in to each mailbox, Daktela uses an application registered once in your Microsoft Entra ID (formerly Azure Active Directory), with permissions your IT administrator approves.
- Incoming e-mail: Daktela regularly downloads new messages from the mailbox and turns them into e-mail activities and tickets in the queue.
- Outgoing e-mail: agents' replies are sent from the same mailbox, or from another mailbox you choose for the queue.
- One configuration, many queues: you set up the application once in Settings β Integrations and then select it in as many e-mail queues as you need. Each queue specifies which mailbox it works with.
Data flows both ways between Daktela and Microsoft 365: messages come in from the mailbox, replies go out through it.
Typical use cases
- Many mailboxes, one setup. A contact centre with separate mailboxes for support, sales and billing connects them all with a single app registration instead of authorising each queue separately.
- Shared and service mailboxes. Access isn't tied to any employee's account, so nothing breaks when the person who set up the queue changes their password or leaves the company.
- Moving away from SMTP passwords. Microsoft is switching off password-based SMTP for Exchange Online; this integration sends through the Graph API instead.
- Central control for IT. Your IT team manages the credentials and permissions in Microsoft Entra and can revoke access at any time.
Tip
Only need one mailbox, or want access limited to a single user's mailbox? The AzureAD GraphAPI + SSO protocol in the e-mail queue may suit you better. See Microsoft 365: which protocol to use.
Prerequisites and setup¶
Prerequisites¶
- In Microsoft: mailboxes hosted in Exchange Online (Microsoft 365), and an administrator who can register applications in Microsoft Entra ID and grant admin consent for the tenant.
- In Daktela: an administrator account with access to Settings β Integrations and Settings β Routings β Queues.
Step 1: Register an application in Microsoft Entra ID¶
-
Sign in to the Azure portal as an administrator.

-
Open the menu on the left and go to Microsoft Entra ID.

-
On the Overview page, copy the Tenant ID. You will need it in Step 4.

-
Go to Manage β App registrations and click New registration.

-
Enter a name for the application, for example Daktela integration, and click Register.

-
On the application's overview page, copy the Application (client) ID.

Step 2: Create a client secret¶
-
In the application's menu, go to Certificates & secrets, and under Client secrets click New client secret.


-
Enter a short description, choose the longest expiry period available and click Add.

-
Copy the secret's Value right away β Microsoft shows it only once.

Warning
The client secret expires. Note the expiry date: when the secret expires, every queue using this configuration stops downloading and sending e-mail until you enter a new secret in Daktela.
Step 3: Grant API permissions¶
- In the application's menu, go to API permissions and click Add a permission, then Microsoft Graph and Application permissions.
-
Add these permissions:
Permission Why Daktela needs it Mail.ReadWriteRead incoming messages, mark them as read or move them to Deleted Items, and create the outgoing message in the mailbox before it is sent. Mail.SendSend replies. Needed only if the queue sends e-mail through this configuration. -
Click Grant admin consent for your tenant.
Mail.Read, Mail.ReadBasic and Mail.ReadBasic.All, which earlier versions of this guide listed, are covered by Mail.ReadWrite β granting them as well does no harm.
Tip
Application permissions give the app access to every mailbox in your tenant. To limit it to the mailboxes your contact centre uses, set up an application access policy (RBAC for Applications) in Exchange Online.
Step 4: Create the configuration in Daktela¶
- In Daktela, go to Settings β Integrations and click Configure under Azure Email Tenant Application.
-
Fill in the form:
Field What to enter Title Any name that tells you which tenant or application this is. You pick the configuration by this name in the queue. Tenant ID The Tenant ID from Step 1. Application ID The Application (client) ID from Step 1. Client secret The secret Value from Step 2. -
Click Authorize, then Activate.
Step 5: Use the configuration in your e-mail queues¶
- Go to Settings β Routings β Queues and open the e-mail queue that should use the application. Repeat this for every queue.
-
Under Incoming mail server, fill in:
Field What to enter Protocol AzureAD GraphAPI Tenant Use same method for Outgoing Turn on to send replies through the same mailbox and configuration. Otherwise set up the outgoing server separately β you can choose AzureAD GraphAPI Tenant there too. Name The e-mail address of the mailbox, for example support@yourcompany.com.Configuration The configuration you created in Step 4. -
Save the queue.
Technical details¶
| Topic | Behaviour |
|---|---|
| Direction | Two-way: incoming messages are downloaded from the mailbox, outgoing messages are sent through it. |
| Authentication | OAuth 2.0 client credentials flow against https://login.microsoftonline.com/<Tenant ID>/oauth2/v2.0/token with the scope https://graph.microsoft.com/.default. No user signs in and no refresh token is used. |
| Access token | Requested when first needed and stored encrypted in the configuration; renewed automatically shortly before it expires. All queues using the configuration share the token. |
| API | Microsoft Graph v1.0, mailbox endpoints /users/<mailbox address>/β¦. |
| Download schedule | The e-mail service checks every active e-mail queue about every 20 seconds. |
| Batch size | Up to 20 unread messages per mailbox per check, oldest first. A backlog is worked off over consecutive checks. |
| Which messages | Unread messages (drafts excluded) in the folder set in Email folder name β Inbox by default. For Graph protocols, enter the folder ID; only well-known folders such as Inbox can be entered by name. Choosing the folder is available from version 33.0.0 (and from 31.28.0 and 32.20.0). |
| After download | The message is marked as read in the mailbox. If Do not keep emails is on, it is moved to Deleted Items instead. A message that fails to import stays unread and is tried again on the next check. |
| Sending | Daktela creates the message in the mailbox from the complete e-mail, including attachments, sets Reply-To if the queue uses one, and sends it through Graph. |
| Throttling | If Microsoft asks Daktela to slow down (HTTP 429 with Retry-After), the queue waits as requested before the next attempt. |
| Multiple configurations | Supported, for example one per Microsoft tenant. Each Application ID can be used in only one configuration. |
| Deactivation | Deactivating a configuration switches off every e-mail queue that reads or sends e-mail through it. |
| Available since | Version 29.2.0 (6.27.14.0 on the 6.27 line). |
What is checked when you click Authorize¶
Daktela requests an access token with the Tenant ID, Application ID and client secret you entered.
- If Microsoft refuses the credentials, you see Check your credentials.
- If another configuration already uses the same Application ID, you see Duplicate found, please check your configuration.
The API permissions are not checked at this point. A missing permission or missing admin consent shows up only when the queue connects to the mailbox β Microsoft then answers with an access-denied error.
Errors and troubleshooting¶
- A queue stops downloading or sending. If a queue can't sign in to its mailbox for more than 10 minutes, Daktela e-mails the administrators that the connector has lost its authorisation.
- Expired client secret. Create a new secret in the Azure portal (Step 2), open the configuration in Settings β Integrations, enter the new value and authorise again.
- Access denied. Check that both permissions from Step 3 are added as Application permissions (not Delegated) and that admin consent has been granted. If you use an Exchange application access policy, check that the mailbox is included.
- Messages from the wrong folder. For Graph protocols, Email folder name takes a folder ID, not a display name; only well-known folders such as Inbox work by name.