![](/images/new-backgrounds/1263509/263509119x1.webp)
60
Mail Attributes in User Records
The following table lists the standard XML data structures for a user mail attribute, part of a standard user record.
MailAttribute field | Description | Sample values |
AttributeVersion | A required | <key> |
| must be set to AppleMail 1.0. | kAttributeVersion |
|
| </key> |
|
| <string> |
|
| AppleMail 1.0 |
|
| </string> |
|
|
|
MailAccountState | A required | <key> |
| describing the state of the user’s mail. | kMailAccountState |
| It must be set to one of these | </key> |
| values: Off, Enabled, or Forward. <string> | |
|
| Enabled |
|
| </string> |
|
|
|
POP3LoginState | A required | <key> |
| indicating whether the user is allowed | kPOP3LoginState |
| to access mail via POP. It must be set | </key> |
| to one of these values: | <string> |
| POP3Allowed or POP3Deny. | POP3Deny |
|
| </string> |
|
|
|
IMAPLoginState | A required | <key> |
| indicating whether the user is allowed | kIMAPLoginState |
| to access mail using IMAP. It must be | </key> |
| set to one of these values: | <string> |
| IMAPAllowed or IMAPDeny. | IMAPAllowed |
|
| </string> |
|
|
|
MailAccountLocation | A required value indicating the | <key> |
| domain name or IP address of the | kMailAccountLocation |
| ProductName responsible for storing | </key> |
| the user’s mail. | <string> |
|
| domain.example.com |
|
| </string> |
|
|
|
AutoForwardValue | A required field only if | <key> |
| MailAccountState has the value | kAutoForwardValue |
| Forward. The value must be a valid | </key> |
| RFC 822 email address. | <string> |
|
| user@example.com |
|
| </string> |
|
|
|
Chapter 7 Working With Users and Groups