---
title: AccountMail
framework: devicemanagement
role: symbol
role_heading: Object
path: devicemanagement/accountmail
---

# AccountMail

The declaration to configure a Mail account.

## Declaration

```data
object AccountMail
```

## Properties

IncomingServer: The settings for the incoming mail server for this account. OutgoingServer: The settings for the outgoing mail server for this account. SMIME: Settings for S/MIME. Available: iOS 17+ | iPadOS 17+ | visionOS 1.1+ UserIdentityAssetReference: The identifier of an asset declaration that contains the user identity for this account. Set the corresponding asset type to UserIdentity. VisibleName: The name that apps show to the user for this mail account. If not present, the system generates a suitable default.

## Discussion

Discussion Specify com.apple.configuration.account.mail as the declaration type. Configuration availability  |   |   |   |   |   |   |   |  Configuration example This configuration sets up an IMAP email account with SMTP outgoing mail. {     "Type": "com.apple.configuration.account.mail",     "Identifier": "EB13EE2B-5D63-4EBA-810F-5B81D07F5017",     "ServerToken": "E180CA9A-F089-4FA3-BBDF-94CC159C4AE8",     "Payload": {         "VisibleName": "Work Mail",         "UserIdentityAssetReference": "CB3E6C7F-2318-437B-8A9E-D50C69376DE4",         "IncomingServer": {             "ServerType": "IMAP",             "HostName": "imap.example.com",             "AuthenticationMethod": "Password",             "AuthenticationCredentialsAssetReference": "64BF8F5C-8CFD-40AA-9082-A0B594D4E100"         },         "OutgoingServer": {             "HostName": "smtp.example.com",             "AuthenticationMethod": "Password",             "AuthenticationCredentialsAssetReference": "64BF8F5C-8CFD-40AA-9082-A0B594D4E100"         }     } }

## Topics

### Objects

- [AccountMailIncomingServerObject](devicemanagement/accountmailincomingserverobject.md)
- [AccountMailOutgoingServerObject](devicemanagement/accountmailoutgoingserverobject.md)
- [AccountMailSMIMEObject](devicemanagement/accountmailsmimeobject.md)

## See Also

### Configurations

- [AccountCalDAV](devicemanagement/accountcaldav.md)
- [AccountCardDAV](devicemanagement/accountcarddav.md)
- [AccountExchange](devicemanagement/accountexchange.md)
- [AccountGoogle](devicemanagement/accountgoogle.md)
- [AccountLDAP](devicemanagement/accountldap.md)
- [AccountSubscribedCalendar](devicemanagement/accountsubscribedcalendar.md)
- [AppManaged](devicemanagement/appmanaged.md)
- [AppSettings](devicemanagement/appsettings.md)
- [AudioAccessorySettings](devicemanagement/audioaccessorysettings.md)
- [ContentCaching](devicemanagement/contentcaching.md)
- [DiskManagementSettings](devicemanagement/diskmanagementsettings.md)
- [ExtensibleSSO](devicemanagement/extensiblesso.md)
- [ExternalIntelligenceSettings](devicemanagement/externalintelligencesettings.md)
- [IntelligenceSettings](devicemanagement/intelligencesettings.md)
- [KeyboardSettings](devicemanagement/keyboardsettings.md)
