Trusted Email Domains
PingOne supports the ability to configure up to 50 trusted email domains for each environment. A trusted email domain with its associated email addresses enable PingOne to send emails on your organization’s behalf. To implement a trusted email domain, you’ll need to add DNS records and setup DKIM and SPF.
To create and manage trusted email addresses associated with your trusted email domain, refer to Trusted email addresses.
Trusted email domain properties
| Property | Type | Required | Mutable | Description |
|---|---|---|---|---|
|
String |
Required |
Immutable |
The auto-generated ID of the email domain. |
|
String |
Required |
Mutable |
A string that specifies the resource name, which must be provided and must be unique within an environment (for example, auth.shopco.com). Wildcards are NOT supported. |
|
String |
Required |
Immutable |
The environment resource’s unique identifier associated with the resource. |
Trusted email domain ownership properties
| Property | Type | Required | Mutable | Description |
|---|---|---|---|---|
|
Object |
N/A |
Read-only |
|
|
Object[] |
Required |
Immutable |
The regions collection specifies the properties for the 4 AWS SES regions that are used for sending email for the environment. The regions are determined by the geography where this environment was provisioned (North America, Canada, Europe & Asia-Pacific). Each item in the regions collection is an object with these properties: * * * ACTIVE * VERIFICATION_REQUIRED * * |
|
String |
Required |
Mutable |
The type of DNS record, with the value "TXT". |
Trusted email domain DKIM properties
| Property | Type | Required | Mutable | Description |
|---|---|---|---|---|
|
String |
Required |
Mutable |
The type of DNS record, with the value "CNAME". |
|
Object[] |
Required |
Immutable |
The regions collection specifies the properties for the 4 AWS SES regions that are used for sending email for the environment. The regions are determined by the geography where this environment was provisioned (North America, Canada, Europe & Asia-Pacific). Each item in the regions collection is an object with these properties: * * * ACTIVE * VERIFICATION_REQUIRED * |
Trusted email domain SPF properties
| Property | Type | Required | Mutable | Description |
|---|---|---|---|---|
|
String |
Required |
Mutable |
The type of DNS record, with the value "TXT". |
|
String |
Required |
Mutable |
The status of the email domain ownership. Possible values: * ACTIVE * VERIFICATION_REQUIRED |
|
String |
Required |
Mutable |
Record name. |
|
String |
Required |
Mutable |
Record value. |
Trusted email domains events generated
Refer to Audit Reporting Events for the events generated.
Trusted email domains response codes
| Code | Message |
|---|---|
200 |
Successful operation. |
201 |
Successfully created. |
204 |
Successfully removed. No content. |
400 |
The request could not be completed. |
401 |
You do not have access to this resource. |
403 |
You do not have permissions or are not licensed to make this request. |
404 |
The requested resource was not found. |
Custom MAIL FROM domains
To reduce the likelihood of PingOne notification messages getting flagged as spam, you can use the {{apiPath}}/v1/environments/{{envID}}/emailDomains/{{emailDomainID}}/mailFromDomain endpoint to define a custom MAIL FROM domain for trusted email domains that you have configured. Specifying a MAIL FROM domain results in SPF alignment with the FROM header, reducing the chances that the DMARC check will fail.
Send a PUT request to define the custom MAIL FROM domain, and then send a GET request to retrieve the MX record that you have to add to your DNS records in order to use the feature. The SPF record is also modified so you must also send a GET request with the {{apiPath}}/v1/environments/{{envID}}/emailDomains/{{emailDomainID}}/spf endpoint to obtain the updated SPF record to put in your DNS.
MAIL FROM domain data model
| Property | Type | Required | Mutable | Description |
|---|---|---|---|---|
|
String |
N/A |
Read-only |
The name to enter for the MX record that should be added to your DNS. |
|
String |
Required |
Mutable |
The full name to use for the MAIL FROM domain, for example, |
|
Integer |
N/A |
Read-only |
The priority to enter for the MX record that should be added to your DNS. |
|
String |
N/A |
Read-only |
Before the MX record has been added to the DNS, value returned is |
|
String |
N/A |
Read-only |
The type of record returned. Value is always |
|
String |
N/A |
Read-only |
The value to enter for the MX record that should be added to your DNS. |
Trusted email domain errors
In addition to the general error codes, trusted email domain operations can return the following errors:
| HTTP status | Top‑level code | Detail code | When it happens and what the response contains |
|---|---|---|---|
400 |
|
|
Message: When and detailsWhen: A Details: Detail |
400 |
|
|
Message: When and detailsWhen: A request body is malformed JSON or contains a value of the wrong type, or a path variable such as Details: For JSON deserialization failures, detail |
400 |
|
|
Message: When and detailsWhen: A Details: Detail |
400 |
|
|
Message: When and detailsWhen: A Details: Detail |
400 |
|
|
Message: When and detailsWhen: A Details: Detail |
400 |
|
|
Message: When and detailsWhen: A Details: A detail with no code, carrying target |
400 |
|
|
Message: When and detailsWhen: A Details: Detail |
400 |
|
|
Message: When and detailsWhen: A Details: Detail |
403 |
|
None |
Message: When and detailsWhen: The actor lacks the permission for the operation: Details: None. |
404 |
|
None |
Message: When and detailsWhen: A request specifies an environment that does not exist. Details: None. |
404 |
|
None |
Message: When and detailsWhen: A request specifies an Details: Detail without a code, carrying the message |
500 |
|
|
Message: When and detailsWhen: The service encounters a database error or an AWS SES domain verification failure while processing the request. Details: Detail without a code, carrying the underlying AWS SES or database error message. |