---
title: Email Routing
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/terraform)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Email Routing

#### resource cloudflare\_email\_routing\_settings

##### required Expand Collapse

zone\_id: String

Identifier.

[Link to this property](<#(resource)%20email_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20zone_id>)

##### optional Expand Collapse

enabled?: Bool

State of your zone Email Routing settings. No-op on this endpoint - use `POST`/`DELETE /zones/{zone_id}/email/routing/dns`.

[Link to this property](<#(resource)%20email_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20enabled>)

skip\_wizard?: Bool

Flag to check if the user skipped the configuration wizard.

[Link to this property](<#(resource)%20email_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20skip_wizard>)

support\_subaddress?: Bool

Whether subaddressing (plus-addressing) is honored when matching incoming mail against routing rules.

[Link to this property](<#(resource)%20email_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20support_subaddress>)

##### computed Expand Collapse

id: String

Email Routing settings identifier.

[Link to this property](<#(resource)%20email_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20id>)

created: Time

The date and time the settings have been created.

[Link to this property](<#(resource)%20email_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20created>)

modified: Time

The date and time the settings have been modified.

[Link to this property](<#(resource)%20email_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20modified>)

name: String

Domain of your zone.

[Link to this property](<#(resource)%20email_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20name>)

status: String

Show the state of your account, and the type or configuration error.

[Link to this property](<#(resource)%20email_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20status>)

Deprecatedtag: String

Email Routing settings tag. (Deprecated, replaced by Email Routing settings identifier)

[Link to this property](<#(resource)%20email_routing%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20tag>)

### cloudflare\_email\_routing\_settings

Terraform

HTTPTypeScriptPythonGoTerraform

```
resource "cloudflare_email_routing_settings" "example_email_routing_settings" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
}
```

#### data cloudflare\_email\_routing\_settings

##### required Expand Collapse

zone\_id: String

Identifier.

[Link to this property](<#(resource)%20email_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20zone_id>)

##### computed Expand Collapse

id: String

Identifier.

[Link to this property](<#(resource)%20email_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20id>)

created: Time

The date and time the settings have been created.

[Link to this property](<#(resource)%20email_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20created>)

enabled: Bool

State of the zone settings for Email Routing.

[Link to this property](<#(resource)%20email_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20enabled>)

modified: Time

The date and time the settings have been modified.

[Link to this property](<#(resource)%20email_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20modified>)

name: String

Domain of your zone.

[Link to this property](<#(resource)%20email_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20name>)

skip\_wizard: Bool

Flag to check if the user skipped the configuration wizard.

[Link to this property](<#(resource)%20email_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20skip_wizard>)

status: String

Show the state of your account, and the type or configuration error.

[Link to this property](<#(resource)%20email_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20status>)

support\_subaddress: Bool

Whether subaddressing (plus-addressing) is honored when matching incoming mail against routing rules.

[Link to this property](<#(resource)%20email_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20support_subaddress>)

Deprecatedtag: String

Email Routing settings tag. (Deprecated, replaced by Email Routing settings identifier)

[Link to this property](<#(resource)%20email_routing%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20tag>)

### cloudflare\_email\_routing\_settings

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_email_routing_settings" "example_email_routing_settings" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
}
```

#### Email RoutingDNS

#### resource cloudflare\_email\_routing\_dns

##### required Expand Collapse

zone\_id: String

Identifier.

[Link to this property](<#(resource)%20email_routing.dns%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20zone_id>)

##### optional Expand Collapse

name?: String

Domain of your zone.

[Link to this property](<#(resource)%20email_routing.dns%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20name>)

##### computed Expand Collapse

id: String

Identifier.

[Link to this property](<#(resource)%20email_routing.dns%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20id>)

created: Time

The date and time the settings have been created.

[Link to this property](<#(resource)%20email_routing.dns%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20created>)

enabled: Bool

State of the zone settings for Email Routing.

[Link to this property](<#(resource)%20email_routing.dns%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20enabled>)

modified: Time

The date and time the settings have been modified.

[Link to this property](<#(resource)%20email_routing.dns%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20modified>)

skip\_wizard: Bool

Flag to check if the user skipped the configuration wizard.

[Link to this property](<#(resource)%20email_routing.dns%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20skip_wizard>)

status: String

Show the state of your account, and the type or configuration error.

[Link to this property](<#(resource)%20email_routing.dns%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20status>)

support\_subaddress: Bool

Whether subaddressing (plus-addressing) is honored when matching incoming mail against routing rules.

[Link to this property](<#(resource)%20email_routing.dns%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20support_subaddress>)

Deprecatedtag: String

Email Routing settings tag. (Deprecated, replaced by Email Routing settings identifier)

[Link to this property](<#(resource)%20email_routing.dns%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20tag>)

### cloudflare\_email\_routing\_dns

Terraform

HTTPTypeScriptPythonGoTerraform

```
resource "cloudflare_email_routing_dns" "example_email_routing_dns" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  name = "example.net"
}
```

#### data cloudflare\_email\_routing\_dns

##### required Expand Collapse

zone\_id: String

Identifier.

[Link to this property](<#(resource)%20email_routing.dns%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20zone_id>)

##### optional Expand Collapse

subdomain?: String

Deprecated. When supplied, the response shape differs from the documented default and is not modeled in generated SDKs. Do not rely on this parameter.

[Link to this property](<#(resource)%20email_routing.dns%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20subdomain>)

##### computed Expand Collapse

id: String

Identifier.

[Link to this property](<#(resource)%20email_routing.dns%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20id>)

<details>

<summary>

dns: List\[Attributes]

</summary>

content: String

DNS record content.

<a href="#(resource)%20email_routing.dns%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20dns%20%3E%20(attribute)%20content">Link to this property</a>

name: String

DNS record name (or @ for the zone apex).

<a href="#(resource)%20email_routing.dns%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20dns%20%3E%20(attribute)%20name">Link to this property</a>

priority: Float64

Required for MX, SRV and URI records. Unused by other record types. Records with lower priorities are preferred.

<a href="#(resource)%20email_routing.dns%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20dns%20%3E%20(attribute)%20priority">Link to this property</a>

ttl: Float64

Time to live, in seconds, of the DNS record. Must be between 60 and 86400, or 1 for ‘automatic’.

<a href="#(resource)%20email_routing.dns%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20dns%20%3E%20(attribute)%20ttl">Link to this property</a>

type: String

DNS record type.

<a href="#(resource)%20email_routing.dns%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20dns%20%3E%20(attribute)%20type">Link to this property</a>

</details>

[Link to this property](<#(resource)%20email_routing.dns%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20dns>)

### cloudflare\_email\_routing\_dns

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_email_routing_dns" "example_email_routing_dns" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  subdomain = "example.net"
}
```

#### Email RoutingRules

#### resource cloudflare\_email\_routing\_rule

##### required Expand Collapse

zone\_id: String

Identifier.

[Link to this property](<#(resource)%20email_routing.rules%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20zone_id>)

<details>

<summary>

actions: List\[Attributes]

List actions patterns.

</summary>

type: String

Type of supported action.

<a href="#(resource)%20email_routing.rules%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20actions%20%3E%20(attribute)%20type">Link to this property</a>

value?: List\[String]

List of values for the action. Currently limited to a single value.

<a href="#(resource)%20email_routing.rules%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20actions%20%3E%20(attribute)%20value">Link to this property</a>

</details>

[Link to this property](<#(resource)%20email_routing.rules%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20actions>)

<details>

<summary>

matchers: List\[Attributes]

Matching patterns to forward to your actions.

</summary>

type: String

Type of matcher.

<a href="#(resource)%20email_routing.rules%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20matchers%20%3E%20(attribute)%20type">Link to this property</a>

field?: String

Field for type matcher.

<a href="#(resource)%20email_routing.rules%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20matchers%20%3E%20(attribute)%20field">Link to this property</a>

value?: String

Value for matcher.

<a href="#(resource)%20email_routing.rules%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20matchers%20%3E%20(attribute)%20value">Link to this property</a>

</details>

[Link to this property](<#(resource)%20email_routing.rules%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20matchers>)

##### optional Expand Collapse

name?: String

Routing rule name.

[Link to this property](<#(resource)%20email_routing.rules%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20name>)

owner\_worker\_tag?: String

Public tag (script\_tag) of the Worker that owns this rule. Required when `source` is `wrangler`.

[Link to this property](<#(resource)%20email_routing.rules%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20owner_worker_tag>)

enabled?: Bool

Routing rule status.

[Link to this property](<#(resource)%20email_routing.rules%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20enabled>)

priority?: Float64

Priority of the routing rule.

[Link to this property](<#(resource)%20email_routing.rules%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20priority>)

source?: String

Who manages the rule. `api` covers dashboard, generic API, and Terraform; `wrangler` means the rule is managed by a Worker’s wrangler.jsonc. Defaults to `api` when omitted on write.

[Link to this property](<#(resource)%20email_routing.rules%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20source>)

##### computed Expand Collapse

id: String

Routing rule identifier.

[Link to this property](<#(resource)%20email_routing.rules%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20id>)

Deprecatedtag: String

Routing rule tag. (Deprecated, replaced by routing rule identifier)

[Link to this property](<#(resource)%20email_routing.rules%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20tag>)

### cloudflare\_email\_routing\_rule

Terraform

HTTPTypeScriptPythonGoTerraform

```
resource "cloudflare_email_routing_rule" "example_email_routing_rule" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  actions = [{
    type = "forward"
    value = ["destinationaddress@example.net"]
  }]
  matchers = [{
    type = "literal"
    field = "to"
    value = "test@example.com"
  }]
  enabled = true
  name = "Send to user@example.net rule."
  owner_worker_tag = "a7e6fb77503c41d8a7f3113c6918f10c"
  priority = 0
  source = "api"
}
```

#### data cloudflare\_email\_routing\_rule

##### required Expand Collapse

rule\_identifier: String

Routing rule identifier.

[Link to this property](<#(resource)%20email_routing.rules%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20rule_identifier>)

zone\_id: String

Identifier.

[Link to this property](<#(resource)%20email_routing.rules%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20zone_id>)

##### computed Expand Collapse

id: String

Routing rule identifier.

[Link to this property](<#(resource)%20email_routing.rules%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20id>)

enabled: Bool

Routing rule status.

[Link to this property](<#(resource)%20email_routing.rules%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20enabled>)

name: String

Routing rule name.

[Link to this property](<#(resource)%20email_routing.rules%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20name>)

priority: Float64

Priority of the routing rule.

[Link to this property](<#(resource)%20email_routing.rules%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20priority>)

source: String

Who manages the rule. `api` covers dashboard, generic API, and Terraform; `wrangler` means the rule is managed by a Worker’s wrangler.jsonc. Defaults to `api` when omitted on write.

[Link to this property](<#(resource)%20email_routing.rules%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20source>)

Deprecatedtag: String

Routing rule tag. (Deprecated, replaced by routing rule identifier)

[Link to this property](<#(resource)%20email_routing.rules%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20tag>)

<details>

<summary>

actions: List\[Attributes]

List actions patterns.

</summary>

type: String

Type of supported action.

<a href="#(resource)%20email_routing.rules%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20actions%20%3E%20(attribute)%20type">Link to this property</a>

value: List\[String]

List of values for the action. Currently limited to a single value.

<a href="#(resource)%20email_routing.rules%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20actions%20%3E%20(attribute)%20value">Link to this property</a>

</details>

[Link to this property](<#(resource)%20email_routing.rules%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20actions>)

<details>

<summary>

matchers: List\[Attributes]

Matching patterns to forward to your actions.

</summary>

type: String

Type of matcher.

<a href="#(resource)%20email_routing.rules%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20matchers%20%3E%20(attribute)%20type">Link to this property</a>

field: String

Field for type matcher.

<a href="#(resource)%20email_routing.rules%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20matchers%20%3E%20(attribute)%20field">Link to this property</a>

value: String

Value for matcher.

<a href="#(resource)%20email_routing.rules%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20matchers%20%3E%20(attribute)%20value">Link to this property</a>

</details>

[Link to this property](<#(resource)%20email_routing.rules%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20matchers>)

### cloudflare\_email\_routing\_rule

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_email_routing_rule" "example_email_routing_rule" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  rule_identifier = "a7e6fb77503c41d8a7f3113c6918f10c"
}
```

#### data cloudflare\_email\_routing\_rules

##### optional Expand Collapse

account\_id?: String

The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.

[Link to this property](<#(resource)%20email_routing.rules%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20account_id>)

zone\_id?: String

The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.

[Link to this property](<#(resource)%20email_routing.rules%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20zone_id>)

enabled?: Bool

Filter by enabled routing rules.

[Link to this property](<#(resource)%20email_routing.rules%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20enabled>)

max\_items?: Int64

Max items to fetch, default: 1000

[Link to this property](<#(resource)%20email_routing.rules%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20max_items>)

##### computed Expand Collapse

<details>

<summary>

result: List\[Attributes]

The items returned by the data source

</summary>

id: String

Routing rule identifier.

<a href="#(resource)%20email_routing.rules%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20id">Link to this property</a>

<details>

<summary>

actions: List\[Attributes]

List actions patterns.

</summary>

type: String

Type of supported action.

<a href="#(resource)%20email_routing.rules%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20actions%20%3E%20(attribute)%20type">Link to this property</a>

value: List\[String]

List of values for the action. Currently limited to a single value.

<a href="#(resource)%20email_routing.rules%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20actions%20%3E%20(attribute)%20value">Link to this property</a>

</details>

<a href="#(resource)%20email_routing.rules%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20actions">Link to this property</a>

enabled: Bool

Routing rule status.

<a href="#(resource)%20email_routing.rules%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20enabled">Link to this property</a>

<details>

<summary>

matchers: List\[Attributes]

Matching patterns to forward to your actions.

</summary>

type: String

Type of matcher.

<a href="#(resource)%20email_routing.rules%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20matchers%20%3E%20(attribute)%20type">Link to this property</a>

field: String

Field for type matcher.

<a href="#(resource)%20email_routing.rules%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20matchers%20%3E%20(attribute)%20field">Link to this property</a>

value: String

Value for matcher.

<a href="#(resource)%20email_routing.rules%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20matchers%20%3E%20(attribute)%20value">Link to this property</a>

</details>

<a href="#(resource)%20email_routing.rules%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20matchers">Link to this property</a>

name: String

Routing rule name.

<a href="#(resource)%20email_routing.rules%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20name">Link to this property</a>

priority: Float64

Priority of the routing rule.

<a href="#(resource)%20email_routing.rules%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20priority">Link to this property</a>

source: String

Who manages the rule. <code>api</code> covers dashboard, generic API, and Terraform; <code>wrangler</code> means the rule is managed by a Worker’s wrangler.jsonc. Defaults to <code>api</code> when omitted on write.

<a href="#(resource)%20email_routing.rules%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20source">Link to this property</a>

Deprecatedtag: String

Routing rule tag. (Deprecated, replaced by routing rule identifier)

<a href="#(resource)%20email_routing.rules%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20tag">Link to this property</a>

<details>

<summary>

zone: Attributes

Zone information for the routing rule.

</summary>

name: String

Zone name.

<a href="#(resource)%20email_routing.rules%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20zone%20%3E%20(attribute)%20name">Link to this property</a>

tag: String

Zone tag.

<a href="#(resource)%20email_routing.rules%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20zone%20%3E%20(attribute)%20tag">Link to this property</a>

</details>

<a href="#(resource)%20email_routing.rules%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20zone">Link to this property</a>

</details>

[Link to this property](<#(resource)%20email_routing.rules%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result>)

### cloudflare\_email\_routing\_rules

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_email_routing_rules" "example_email_routing_rules" {
  account_id = "account_id"
  zone_id = "zone_id"
  enabled = true
}
```

#### Email RoutingRulesCatch Alls

#### resource cloudflare\_email\_routing\_catch\_all

##### required Expand Collapse

zone\_id: String

Identifier.

[Link to this property](<#(resource)%20email_routing.rules.catch_alls%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20zone_id>)

<details>

<summary>

actions: List\[Attributes]

List actions for the catch-all routing rule.

</summary>

type: String

Type of action for catch-all rule.

<a href="#(resource)%20email_routing.rules.catch_alls%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20actions%20%3E%20(attribute)%20type">Link to this property</a>

value?: List\[String]

List of values for the action. Currently limited to a single value.

<a href="#(resource)%20email_routing.rules.catch_alls%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20actions%20%3E%20(attribute)%20value">Link to this property</a>

</details>

[Link to this property](<#(resource)%20email_routing.rules.catch_alls%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20actions>)

<details>

<summary>

matchers: List\[Attributes]

List of matchers for the catch-all routing rule.

</summary>

type: String

Type of matcher. Default is ‘all’.

<a href="#(resource)%20email_routing.rules.catch_alls%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20matchers%20%3E%20(attribute)%20type">Link to this property</a>

</details>

[Link to this property](<#(resource)%20email_routing.rules.catch_alls%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20matchers>)

##### optional Expand Collapse

name?: String

Routing rule name.

[Link to this property](<#(resource)%20email_routing.rules.catch_alls%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20name>)

owner\_worker\_tag?: String

Public tag (script\_tag) of the Worker that owns this rule. Required when `source` is `wrangler`.

[Link to this property](<#(resource)%20email_routing.rules.catch_alls%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20owner_worker_tag>)

enabled?: Bool

Routing rule status.

[Link to this property](<#(resource)%20email_routing.rules.catch_alls%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20enabled>)

source?: String

Who manages the rule. `api` covers dashboard, generic API, and Terraform; `wrangler` means the rule is managed by a Worker’s wrangler.jsonc. Defaults to `api` when omitted on write.

[Link to this property](<#(resource)%20email_routing.rules.catch_alls%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20source>)

##### computed Expand Collapse

id: String

Identifier.

[Link to this property](<#(resource)%20email_routing.rules.catch_alls%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20id>)

Deprecatedtag: String

Routing rule tag. (Deprecated, replaced by routing rule identifier)

[Link to this property](<#(resource)%20email_routing.rules.catch_alls%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20tag>)

### cloudflare\_email\_routing\_catch\_all

Terraform

HTTPTypeScriptPythonGoTerraform

```
resource "cloudflare_email_routing_catch_all" "example_email_routing_catch_all" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  actions = [{
    type = "forward"
    value = ["destinationaddress@example.net"]
  }]
  matchers = [{
    type = "all"
  }]
  enabled = true
  name = "Send to user@example.net rule."
  owner_worker_tag = "a7e6fb77503c41d8a7f3113c6918f10c"
  source = "api"
}
```

#### data cloudflare\_email\_routing\_catch\_all

##### required Expand Collapse

zone\_id: String

Identifier.

[Link to this property](<#(resource)%20email_routing.rules.catch_alls%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20zone_id>)

##### computed Expand Collapse

id: String

Identifier.

[Link to this property](<#(resource)%20email_routing.rules.catch_alls%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20id>)

enabled: Bool

Routing rule status.

[Link to this property](<#(resource)%20email_routing.rules.catch_alls%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20enabled>)

name: String

Routing rule name.

[Link to this property](<#(resource)%20email_routing.rules.catch_alls%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20name>)

source: String

Who manages the rule. `api` covers dashboard, generic API, and Terraform; `wrangler` means the rule is managed by a Worker’s wrangler.jsonc. Defaults to `api` when omitted on write.

[Link to this property](<#(resource)%20email_routing.rules.catch_alls%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20source>)

Deprecatedtag: String

Routing rule tag. (Deprecated, replaced by routing rule identifier)

[Link to this property](<#(resource)%20email_routing.rules.catch_alls%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20tag>)

<details>

<summary>

actions: List\[Attributes]

List actions for the catch-all routing rule.

</summary>

type: String

Type of action for catch-all rule.

<a href="#(resource)%20email_routing.rules.catch_alls%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20actions%20%3E%20(attribute)%20type">Link to this property</a>

value: List\[String]

List of values for the action. Currently limited to a single value.

<a href="#(resource)%20email_routing.rules.catch_alls%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20actions%20%3E%20(attribute)%20value">Link to this property</a>

</details>

[Link to this property](<#(resource)%20email_routing.rules.catch_alls%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20actions>)

<details>

<summary>

matchers: List\[Attributes]

List of matchers for the catch-all routing rule.

</summary>

type: String

Type of matcher. Default is ‘all’.

<a href="#(resource)%20email_routing.rules.catch_alls%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20matchers%20%3E%20(attribute)%20type">Link to this property</a>

</details>

[Link to this property](<#(resource)%20email_routing.rules.catch_alls%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20matchers>)

### cloudflare\_email\_routing\_catch\_all

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_email_routing_catch_all" "example_email_routing_catch_all" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
}
```

#### Email RoutingAddresses

#### resource cloudflare\_email\_routing\_address

##### required Expand Collapse

account\_id: String

Identifier.

[Link to this property](<#(resource)%20email_routing.addresses%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20account_id>)

email: String

The contact email address of the user.

[Link to this property](<#(resource)%20email_routing.addresses%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20email>)

##### optional Expand Collapse

status?: String

Destination address status. Non-admin callers may only set verified addresses back to unverified; setting to verified requires admin privileges.

[Link to this property](<#(resource)%20email_routing.addresses%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20status>)

##### computed Expand Collapse

id: String

Destination address identifier.

[Link to this property](<#(resource)%20email_routing.addresses%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20id>)

created: Time

The date and time the destination address has been created.

[Link to this property](<#(resource)%20email_routing.addresses%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20created>)

modified: Time

The date and time the destination address was last modified.

[Link to this property](<#(resource)%20email_routing.addresses%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20modified>)

Deprecatedtag: String

Destination address tag. (Deprecated, replaced by destination address identifier)

[Link to this property](<#(resource)%20email_routing.addresses%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20tag>)

verified: Time

The date and time the destination address has been verified. Null means not verified yet.

[Link to this property](<#(resource)%20email_routing.addresses%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20verified>)

### cloudflare\_email\_routing\_address

Terraform

HTTPTypeScriptPythonGoTerraform

```
resource "cloudflare_email_routing_address" "example_email_routing_address" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  email = "user@example.com"
}
```

#### data cloudflare\_email\_routing\_address

##### required Expand Collapse

account\_id: String

Identifier.

[Link to this property](<#(resource)%20email_routing.addresses%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20account_id>)

##### optional Expand Collapse

destination\_address\_identifier?: String

Destination address identifier.

[Link to this property](<#(resource)%20email_routing.addresses%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20destination_address_identifier>)

<details>

<summary>

filter?: Attributes

</summary>

direction?: String

Sorts results in an ascending or descending order.

<a href="#(resource)%20email_routing.addresses%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter%20%3E%20(attribute)%20direction">Link to this property</a>

verified?: Bool

Filter by verified destination addresses.

<a href="#(resource)%20email_routing.addresses%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter%20%3E%20(attribute)%20verified">Link to this property</a>

</details>

[Link to this property](<#(resource)%20email_routing.addresses%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter>)

##### computed Expand Collapse

id: String

Destination address identifier.

[Link to this property](<#(resource)%20email_routing.addresses%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20id>)

created: Time

The date and time the destination address has been created.

[Link to this property](<#(resource)%20email_routing.addresses%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20created>)

email: String

The contact email address of the user.

[Link to this property](<#(resource)%20email_routing.addresses%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20email>)

modified: Time

The date and time the destination address was last modified.

[Link to this property](<#(resource)%20email_routing.addresses%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20modified>)

Deprecatedtag: String

Destination address tag. (Deprecated, replaced by destination address identifier)

[Link to this property](<#(resource)%20email_routing.addresses%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20tag>)

verified: Time

The date and time the destination address has been verified. Null means not verified yet.

[Link to this property](<#(resource)%20email_routing.addresses%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20verified>)

### cloudflare\_email\_routing\_address

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_email_routing_address" "example_email_routing_address" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  destination_address_identifier = "ea95132c15732412d22c1476fa83f27a"
}
```

#### data cloudflare\_email\_routing\_addresses

##### required Expand Collapse

account\_id: String

Identifier.

[Link to this property](<#(resource)%20email_routing.addresses%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20account_id>)

##### optional Expand Collapse

direction?: String

Sorts results in an ascending or descending order.

[Link to this property](<#(resource)%20email_routing.addresses%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20direction>)

verified?: Bool

Filter by verified destination addresses.

[Link to this property](<#(resource)%20email_routing.addresses%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20verified>)

max\_items?: Int64

Max items to fetch, default: 1000

[Link to this property](<#(resource)%20email_routing.addresses%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20max_items>)

##### computed Expand Collapse

<details>

<summary>

result: List\[Attributes]

The items returned by the data source

</summary>

id: String

Destination address identifier.

<a href="#(resource)%20email_routing.addresses%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20id">Link to this property</a>

created: Time

The date and time the destination address has been created.

<a href="#(resource)%20email_routing.addresses%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20created">Link to this property</a>

email: String

The contact email address of the user.

<a href="#(resource)%20email_routing.addresses%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20email">Link to this property</a>

modified: Time

The date and time the destination address was last modified.

<a href="#(resource)%20email_routing.addresses%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20modified">Link to this property</a>

Deprecatedtag: String

Destination address tag. (Deprecated, replaced by destination address identifier)

<a href="#(resource)%20email_routing.addresses%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20tag">Link to this property</a>

verified: Time

The date and time the destination address has been verified. Null means not verified yet.

<a href="#(resource)%20email_routing.addresses%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20verified">Link to this property</a>

</details>

[Link to this property](<#(resource)%20email_routing.addresses%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result>)

### cloudflare\_email\_routing\_addresses

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_email_routing_addresses" "example_email_routing_addresses" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
}
```