

This is the new *Amazon CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [Amazon CloudFormation User Guide](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::PinpointEmail::Identity MailFromAttributes
<a name="aws-properties-pinpointemail-identity-mailfromattributes"></a>

A list of attributes that are associated with a MAIL FROM domain.

## Syntax
<a name="aws-properties-pinpointemail-identity-mailfromattributes-syntax"></a>

To declare this entity in your Amazon CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-pinpointemail-identity-mailfromattributes-syntax.json"></a>

```
{
  "[BehaviorOnMxFailure](#cfn-pinpointemail-identity-mailfromattributes-behavioronmxfailure)" : String,
  "[MailFromDomain](#cfn-pinpointemail-identity-mailfromattributes-mailfromdomain)" : String
}
```

### YAML
<a name="aws-properties-pinpointemail-identity-mailfromattributes-syntax.yaml"></a>

```
  [BehaviorOnMxFailure](#cfn-pinpointemail-identity-mailfromattributes-behavioronmxfailure): String
  [MailFromDomain](#cfn-pinpointemail-identity-mailfromattributes-mailfromdomain): String
```

## Properties
<a name="aws-properties-pinpointemail-identity-mailfromattributes-properties"></a>

`BehaviorOnMxFailure`  <a name="cfn-pinpointemail-identity-mailfromattributes-behavioronmxfailure"></a>
The action that Amazon Pinpoint to takes if it can't read the required MX record for a custom MAIL FROM domain. When you set this value to `UseDefaultValue`, Amazon Pinpoint uses *amazonses.com* as the MAIL FROM domain. When you set this value to `RejectMessage`, Amazon Pinpoint returns a `MailFromDomainNotVerified` error, and doesn't attempt to deliver the email.  
These behaviors are taken when the custom MAIL FROM domain configuration is in the `Pending`, `Failed`, and `TemporaryFailure` states.  
*Required*: No  
*Type*: String  
*Allowed values*: `USE_DEFAULT_VALUE | REJECT_MESSAGE`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`MailFromDomain`  <a name="cfn-pinpointemail-identity-mailfromattributes-mailfromdomain"></a>
The name of a domain that an email identity uses as a custom MAIL FROM domain.  
*Required*: No  
*Type*: String  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)