Managed Domains
The configuration Managed Domains defines which email and web domains iOS treats as company domains. The configuration is available for devices with Device Enrollment, but not for devices with User Enrollment (BYOD). Only one configuration of this type is possible per policy, so all email and web domains are entered in the same configuration.
Configuration
The configuration is created in the Relution portal via Devices → Policies → {iOS policy} → Add → Managed Domains → Add details. If the policy already contains this configuration, Managed Domains is missing from the selection dialog. The same applies if an active Apple Configurator 2 configuration → in the same policy already contains a profile with the payload type com.apple.domains. Configurations can only be added and edited in the draft of a policy and only reach the devices when the draft is published; in other versions, the fields are read-only and Save is not displayed (see Policy Versioning →).
The form contains the lists Email Domains and Web Domains in the General section. Both are optional and empty by default; a configuration without entries can be saved. Relution transfers the lists as a profile with the payload type com.apple.domains, which appears on the device under the name Relution MDM - Managed Domains.
Both lists are filled in the same way:
- An entry is added with the Enter key, via the plus icon or when the field loses focus, and then appears as an element below the field.
- Several domains separated by spaces are added in one step as individual entries. Duplicate entries are ignored.
- A click on an element moves the entry back into the input field for editing; the cross removes it.
- Relution does not check the format of the entries.
If several policies of a device contain the Managed Domains configuration, the lists are not merged: the device only receives the configuration from the policy with the highest priority (see Priorities →).
Email domains
The company domains are entered in the list Email Domains (EmailDomains), e.g. relution.io. When composing a message, the Mail app marks all recipient addresses in red whose domain is not on the list. This makes it immediately visible when a message leaves the company.
Sending to these addresses is not blocked. The marking is purely informational.
Web domains
iOS treats URLs from the domains in the list Web Domains (WebDomains) as managed. Content downloaded from these pages in Safari is therefore considered company data, e.g. a PDF from the intranet.
This list only has a visible effect in combination with the restrictions on opening documents in the configuration Restrictions →:
- Allow opening managed documents in unmanaged apps
- Allow opening unmanaged documents in managed apps
If opening managed documents in unmanaged apps is prohibited, a PDF from the intranet can then only be opened in managed apps. More background on separating managed and unmanaged data is available in the article Data separation →.
Example: External recipients and intranet documents
A company uses the email domains example.com and example.net; its intranet is available at intranet.example.com. External recipients are to stand out in the Mail app, and documents from the intranet must not open in unmanaged apps.
- Email Domains:
example.com,example.net - Web Domains:
intranet.example.com
In addition, the option Allow opening managed documents in unmanaged apps is disabled in the configuration Restrictions →.
On the device, the Mail app then marks every recipient address outside example.com and example.net in red, and a PDF downloaded from the intranet in Safari can only be opened in managed apps.