---
title: "Create a messaging account"
site: admin
version: 1.11
versions: "all"
url: https://docs-new.servicely.ai/admin/1.11/messaging/messaging-accounts/
type: task
application: system_email
last_updated: 2026-11-24
commit: 88e011e506a8
---


A messaging account holds the server, credentials and type Servicely uses to collect or send email. Administrators create one account for inbound mail and one for outbound mail before inbound processing or notifications can work.

## Before you begin

- You need the `administrator` role.
- Have the mail server name, port, username and password ready, or the token or app registration your authentication type needs.
- For Microsoft 365 mailboxes, prepare the connection first: see [Connect Microsoft 365 mail with Graph API](page:messaging/connect-microsoft-365-graph-api) or [Connect Microsoft 365 mail with OAuth2](page:messaging/connect-microsoft-365-oauth2).

## Steps

<Steps>
  <Step>
    Go to **Administration → Messaging → Messaging accounts** and select **New**.
  </Step>
  <Step>
    To start from shipped settings, apply a template. Servicely ships IMAP inbound and SMTP outbound templates for GMail and for Microsoft mailboxes.
  </Step>
  <Step>
    Enter a **Name** and set **Provider** to **Email**.
  </Step>
  <Step>
    Set **Type**. Use IMAP or POP3 to collect mail, SMTP to send it, or Microsoft Graph API for both. The table below lists the values.
  </Step>
  <Step>
    Fill in the connection fields: **Server**, **Port**, **Enable SSL** or **Enable TLS**, and for inbound accounts **Source folder**, **Move to folder** and **Unread only**.
  </Step>
  <Step>
    Enter the **Username** and choose the **Authentication type**. For **Password**, enter the password. For **OAuth 2**, select the **Outbound API token**.
  </Step>
  <Step>
    For an outbound account, set **Default** to **Yes** if notifications should use it when they name no account.
  </Step>
  <Step>
    Set **Active** to **Yes** and save the record.
  </Step>
  <Step>
    Select **Test Connection**. A dialog confirms "Connection test successful". On failure it shows "Connection test failed" with the response the mail server returned.
  </Step>
</Steps>

<!-- source: system_email/data/AvailableValue?Table=SystemMessagingAccount&Field=Type -->
| Type | Direction | Notes |
| --- | --- | --- |
| Microsoft Graph API (Inbound/Outbound Email) | Inbound and outbound | Uses **Tenant Id**, **Client Id** and **App secret** instead of a server. |
| POP3 (Inbound Email - Limited options) | Inbound | **Delete POP3 messages** removes collected mail from the server. |
| SMTP (Outbound Email) | Outbound | Sends notifications and replies. |
| IMAP (Inbound Email) | Inbound | Reads **Source folder**. **Unread only** is on by default. |

<Callout type="info">
  When a notification names no messaging account, Servicely sends it through the active Email account marked **Default**. The account's type must be SMTP or Microsoft Graph API. If no account is marked **Default**, Servicely uses the first active one it finds.
</Callout>


## Result

The account appears in the messaging accounts list, and its connection test passes. The **Inbound email processing** and **Outbound email processing** jobs collect and send mail through every active account once a minute. Both jobs ship inactive, so activate them before you expect mail to flow.

## Related

- [Troubleshoot messaging accounts](page:messaging/troubleshoot-messaging-accounts)
- [Inbound message fields](page:messaging/inbound-messages)
- [Outbound notifications](page:messaging/outbound-notifications)
- [Scheduled jobs and job queues](page:platform/jobs)
