Skip to content
Start here

Email Security

Email SecuritySettingsBlock Senders

resource cloudflare_email_security_block_sender

required Expand Collapse
account_id: String

Account Identifier

is_regex: Bool
pattern: String
pattern_type: String
optional Expand Collapse
comments?: String
computed Expand Collapse
id: Int64

The unique identifier for the allow policy.

created_at: Time
last_modified: Time

cloudflare_email_security_block_sender

resource "cloudflare_email_security_block_sender" "example_email_security_block_sender" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  is_regex = false
  pattern = "test@example.com"
  pattern_type = "EMAIL"
  comments = "block sender with email test@example.com"
}

data cloudflare_email_security_block_sender

required Expand Collapse
account_id: String

Account Identifier

optional Expand Collapse
pattern_id?: Int64

The unique identifier for the allow policy.

filter?: Attributes
direction?: String

The sorting direction.

order?: String

The field to sort by.

pattern?: String
pattern_type?: String
computed Expand Collapse
id: Int64

The unique identifier for the allow policy.

comments: String
created_at: Time
is_regex: Bool
last_modified: Time
pattern: String
pattern_type: String

cloudflare_email_security_block_sender

data "cloudflare_email_security_block_sender" "example_email_security_block_sender" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  pattern_id = 2402
}

data cloudflare_email_security_block_senders

required Expand Collapse
account_id: String

Account Identifier

optional Expand Collapse
direction?: String

The sorting direction.

order?: String

The field to sort by.

pattern?: String
pattern_type?: String
max_items?: Int64

Max items to fetch, default: 1000

computed Expand Collapse
result: List[Attributes]

The items returned by the data source

id: Int64

The unique identifier for the allow policy.

created_at: Time
is_regex: Bool
last_modified: Time
pattern: String
pattern_type: String
comments: String

cloudflare_email_security_block_senders

data "cloudflare_email_security_block_senders" "example_email_security_block_senders" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  direction = "asc"
  order = "pattern"
  pattern = "pattern"
  pattern_type = "EMAIL"
  search = "search"
}

Email SecuritySettingsImpersonation Registry

resource cloudflare_email_security_impersonation_registry

required Expand Collapse
account_id: String

Account Identifier

email: String
is_email_regex: Bool
name: String
computed Expand Collapse
id: Int64
comments: String
created_at: Time
directory_id: Int64
directory_node_id: Int64
Deprecatedexternal_directory_node_id: String
last_modified: Time
provenance: String

cloudflare_email_security_impersonation_registry

resource "cloudflare_email_security_impersonation_registry" "example_email_security_impersonation_registry" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  email = "email"
  is_email_regex = true
  name = "name"
}

data cloudflare_email_security_impersonation_registry

required Expand Collapse
account_id: String

Account Identifier

optional Expand Collapse
display_name_id?: Int64
filter?: Attributes
direction?: String

The sorting direction.

order?: String

The field to sort by.

provenance?: String
computed Expand Collapse
id: Int64
comments: String
created_at: Time
directory_id: Int64
directory_node_id: Int64
email: String
Deprecatedexternal_directory_node_id: String
is_email_regex: Bool
last_modified: Time
name: String
provenance: String

cloudflare_email_security_impersonation_registry

data "cloudflare_email_security_impersonation_registry" "example_email_security_impersonation_registry" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  display_name_id = 2403
}

data cloudflare_email_security_impersonation_registries

required Expand Collapse
account_id: String

Account Identifier

optional Expand Collapse
direction?: String

The sorting direction.

order?: String

The field to sort by.

provenance?: String
max_items?: Int64

Max items to fetch, default: 1000

computed Expand Collapse
result: List[Attributes]

The items returned by the data source

id: Int64
created_at: Time
email: String
is_email_regex: Bool
last_modified: Time
name: String
comments: String
directory_id: Int64
directory_node_id: Int64
Deprecatedexternal_directory_node_id: String
provenance: String

cloudflare_email_security_impersonation_registries

data "cloudflare_email_security_impersonation_registries" "example_email_security_impersonation_registries" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  direction = "asc"
  order = "name"
  provenance = "A1S_INTERNAL"
  search = "search"
}

Email SecuritySettingsTrusted Domains

resource cloudflare_email_security_trusted_domains

required Expand Collapse
account_id: String

Account Identifier

optional Expand Collapse
body?: List[Attributes]
is_recent: Bool

Select to prevent recently registered domains from triggering a Suspicious or Malicious disposition.

is_regex: Bool
is_similarity: Bool

Select for partner or other approved domains that have similar spelling to your connected domains. Prevents listed domains from triggering a Spoof disposition.

pattern: String
comments?: String
comments?: String
is_recent?: Bool

Select to prevent recently registered domains from triggering a Suspicious or Malicious disposition.

is_regex?: Bool
is_similarity?: Bool

Select for partner or other approved domains that have similar spelling to your connected domains. Prevents listed domains from triggering a Spoof disposition.

pattern?: String
computed Expand Collapse
id: Int64

The unique identifier for the trusted domain.

created_at: Time
last_modified: Time

cloudflare_email_security_trusted_domains

resource "cloudflare_email_security_trusted_domains" "example_email_security_trusted_domains" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  is_recent = true
  is_regex = false
  is_similarity = false
  pattern = "example.com"
  comments = null
}

data cloudflare_email_security_trusted_domains

required Expand Collapse
account_id: String

Account Identifier

optional Expand Collapse
trusted_domain_id?: Int64

The unique identifier for the trusted domain.

filter?: Attributes
direction?: String

The sorting direction.

is_recent?: Bool
is_similarity?: Bool
order?: String

The field to sort by.

pattern?: String
computed Expand Collapse
id: Int64

The unique identifier for the trusted domain.

comments: String
created_at: Time
is_recent: Bool

Select to prevent recently registered domains from triggering a Suspicious or Malicious disposition.

is_regex: Bool
is_similarity: Bool

Select for partner or other approved domains that have similar spelling to your connected domains. Prevents listed domains from triggering a Spoof disposition.

last_modified: Time
pattern: String

cloudflare_email_security_trusted_domains

data "cloudflare_email_security_trusted_domains" "example_email_security_trusted_domains" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  trusted_domain_id = 2401
}

data cloudflare_email_security_trusted_domains_list

required Expand Collapse
account_id: String

Account Identifier

optional Expand Collapse
direction?: String

The sorting direction.

is_recent?: Bool
is_similarity?: Bool
order?: String

The field to sort by.

pattern?: String
max_items?: Int64

Max items to fetch, default: 1000

computed Expand Collapse
result: List[Attributes]

The items returned by the data source

id: Int64

The unique identifier for the trusted domain.

created_at: Time
is_recent: Bool

Select to prevent recently registered domains from triggering a Suspicious or Malicious disposition.

is_regex: Bool
is_similarity: Bool

Select for partner or other approved domains that have similar spelling to your connected domains. Prevents listed domains from triggering a Spoof disposition.

last_modified: Time
pattern: String
comments: String

cloudflare_email_security_trusted_domains_list

data "cloudflare_email_security_trusted_domains_list" "example_email_security_trusted_domains_list" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  direction = "asc"
  is_recent = true
  is_similarity = true
  order = "pattern"
  pattern = "pattern"
  search = "search"
}