---
title: "Create a messaging account"
site: admin
version: 2027.1
versions: "all"
url: https://docs-new.servicely.ai/admin/2027.1/messaging/create-a-messaging-account/
type: task
application: system_email
last_updated: 2026-12-03
commit: 97a56b9c7df7
---


A messaging account holds the mail server and credentials Servicely uses to collect or send email. Create one account for inbound mail and one for outbound mail before you set up inbound processing or notifications.

## Before you begin

- You need the `administrator` role.
- Switch to the Administration workspace with the **Workspace** selector at the foot of the menu.
- Have the mail server name, port, username and password ready.
- A Microsoft 365 mailbox does not accept a password. Create its token first. See [Connect Microsoft 365 mail with OAuth2](page:messaging/connect-microsoft-365-oauth2).

## Steps

<Steps>
  <Step>
    Go to **Messaging & notifications → Accounts & channels → Messaging accounts**.

    <Image src="asset:screenshots/admin/messaging-create-a-messaging-account/messaging-accounts-menu.png">The Messaging accounts item in the Messaging & notifications menu.</Image>
  </Step>
  <Step>
    Select **New**.

    <Image src="asset:screenshots/admin/messaging-create-a-messaging-account/new-messaging-account.png">The empty Create Messaging account form, with Provider, Type, Active, Default and the Authentication tab.</Image>
  </Step>
  <Step>
    Enter a **Name** and leave **Provider** as Email.
  </Step>
  <Step>
    Set **Type**.

    <!-- source: system_email/data/AvailableValue?Table=SystemMessagingAccount&Field=Type, 2027.1.10 -->
    | Value | Meaning |
    | --- | --- |
    | IMAP (Inbound Email) | Collects mail from a folder of the mailbox. |
    | POP3 (Inbound Email - Limited options) | Collects mail. It has no folder settings and signs in with a password only. |
    | SMTP (Outbound Email) | Sends notifications and replies. |
  </Step>
  <Step>
    On the **Connection** tab, enter the mail server's details.

    | Field | What to enter | Example |
    | --- | --- | --- |
    | **Server** | The mail server's host name. | `imap.example.com` |
    | **Port** | The port the server listens on. | 993 |
    | **Enable TLS**, **Enable SSL** | Yes for the encryption the server uses. | **Enable TLS**: Yes |
    | **Source folder** | IMAP only. The folder Servicely collects from. | Inbox |
    | **Move to folder** | IMAP only. The folder collected mail moves to. | Processed |
    | **Unread only** | IMAP only. Yes collects unread mail only. Yes is the default. | Yes |

    <Image src="asset:screenshots/admin/messaging-create-a-messaging-account/account-connection.png">An IMAP (Inbound Email) messaging account on the Connection tab, with Server, Port, Enable TLS, Source folder, Move to folder and Unread only.</Image>
  </Step>
  <Step>
    On the **Authentication** tab, enter the **Username** and set **Authentication type**.

    | Value | Meaning |
    | --- | --- |
    | Password | The form shows **Password**. Enter the mailbox password. |
    | OAuth 2 | The form shows **Outbound API token**, which is required. Select the token you created for the mailbox. |
  </Step>
  <Step>
    Set **Active** to Yes and select **Create**. If the account uses neither TLS nor SSL, the dialog "SMTP encryption not required" warns you, and the account is still saved.
  </Step>
  <Step>
    Select **Test Connection**. It saves the record, then shows "Connection test successful", a warning, or "Connection test failed" with the server's response.
  </Step>
  <Step>
    Go to **Scripting & automation → Jobs & generators → Jobs**.

    <Image src="asset:screenshots/admin/platform-jobs-and-logs-create-a-scheduled-job/jobs-menu.png">The Jobs item under Jobs & generators in the Scripting & automation menu.</Image>
  </Step>
  <Step>
    Open the **Inbound email processing** job, set **Active** to Yes and select **Save**. Both mail jobs are inactive by default, and no mail moves until they are active.
  </Step>
  <Step>
    Open the **Outbound email processing** job, set **Active** to Yes and select **Save**.
  </Step>
</Steps>

## Result

The account is in the messaging accounts list and its connection test passes. Every minute, the **Inbound email processing** job collects mail through each active inbound account, and the **Outbound email processing** job sends through each active outbound account. **Failure count** stays at 0 while the account works.

## Options

| To | Do this |
| --- | --- |
| Start from Servicely's settings for Gmail or Microsoft 365 | On the new form, open the **Templates** menu at the top right. It holds an IMAP inbound and an SMTP outbound template for each. The Microsoft templates set **Authentication type** to OAuth 2. |
| Send notifications that name no account through this account | On an SMTP account, set **Default** to Yes. |
| Send from an address that differs from the username | On the **Authentication** tab, enter **From address** under **Email Routing**. |
| Stop late emails from being sent | On an SMTP account, enter **Maximum age for automatic sending (minutes)**. An email still waiting that long after its last update moves to Error. Blank uses the system setting, and 0 means no limit. |

## Variations

### Microsoft 365 through Graph API

One account of the type Microsoft Graph API (Inbound/Outbound Email) both collects and sends. The **Type** list does not show this value by default. See [Connect Microsoft 365 mail with Graph API](page:messaging/connect-microsoft-365-graph-api).

## Related

- [Connect Microsoft 365 mail with OAuth2](page:messaging/connect-microsoft-365-oauth2)
- [Troubleshoot messaging accounts](page:messaging/troubleshoot-messaging-accounts)
- [Inbound message fields](page:messaging/inbound-message-fields)
- [Outbound notifications](page:messaging/outbound-notifications)
- [Scheduled jobs and job queues](page:platform/jobs-and-logs/jobs)
