> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getprimo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Mail accounts

> Add an IMAP or POP mail account, with its incoming and outgoing servers, to the Mail app of managed Macs.

The Mail accounts control adds an IMAP or POP account to the Mail app of the Mac's signed-in user: its incoming and outgoing servers, ports, authentication and SSL, and whether Mail Drop is allowed. The control takes several configurations, one per account.

## Platform compatibility

| macOS | Windows | Linux | iOS / iPadOS | Android |
| - | - | - | - | - |
| ✅ | | | | |

Requires macOS 15 or later, and a user signed in on the Mac.

## Set up the control

**1. Add a configuration**

Go to **MDM** > **Controls**, open **Mail accounts**, then click **Add configuration**. Add one configuration per account.

**2. Configure the account**

Pick the **Account type**, then fill in the account and both servers. See the settings below.

**3. Select targeting**

Choose which devices to apply the configuration to: all macOS devices, specific device groups, or a custom target. Click **Activate** to deploy the configuration. **Save** keeps it inactive.

A setting left empty or on **Not configured** isn't written: the Mac uses its own default.

## Settings

| Section | Setting |
| - | - |
| **Account** | **Account type** |
| | **Email address** (required) |
| | **Sender name** (required) |
| | **Allow Mail Drop** |
| **Incoming mail server** | **Incoming server host name** (required) |
| | **Port** |
| | **Authentication** |
| | **User name** (required) |
| | **Use SSL** |
| | **IMAP folder path prefix** (IMAP accounts only) |
| **Outgoing mail server** | **Outgoing server host name** (required) |
| | **Port** |
| | **Authentication** |
| | **User name** (required) |
| | **Use SSL** |

* **Account type**: **IMAP** or **POP**.
* **Sender name**: the name shown as the sender of the messages.
* **Incoming server host name** and **Outgoing server host name**: the host name of the mail server, such as `imap.example.com`.
* **Port**: a number from 1 to 65535.
* **Authentication**: **None**, **Password**, **CRAM-MD5**, **NTLM** or **HTTP MD5 digest**. It defaults to **Password**.
* **User name**: the user name the server signs in with.
* **Allow Mail Drop** and **Use SSL**: **On**, **Off** or **Not configured**.

## How it works

Primo deploys a user-scoped configuration profile with a Mail payload. macOS installs it for the user signed in on the Mac. It doesn't install on a Mac with no user signed in.

> [!NOTE]
>
> The profile holds no password. Mail asks the employee for it the first time it connects to the account.

The email address, the sender name and both user names are required: macOS refuses a mail account installed by MDM that it would have to complete by asking the employee.

## Modify or remove the control

Open the control from **MDM > Controls** to edit, deactivate or replace a configuration.

## Related articles

* [Controls overview](https://docs.getprimo.com/mdm/policies/overview.md)
* [Exchange accounts](https://docs.getprimo.com/mdm/policies/exchange-accounts.md)
* [Calendar and contacts accounts](https://docs.getprimo.com/mdm/policies/calendar-and-contacts-accounts.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.