Domains

Update domain

Update a specific domain.

put/v1/domains/{domain_id}

Request

  • Base URL: https://api.forwardemail.net
  • URL: https://api.forwardemail.net/v1/domains/{domain_id}
  • Auth: HTTP basic

Request body

has_adult_content_protectionboolean

Whether to enable Spam Scanner adult content protection on this domain

has_phishing_protectionboolean

Whether to enable Spam Scanner phishing protection on this domain

has_executable_protectionboolean

Whether to enable Spam Scanner executable protection on this domain

has_virus_protectionboolean

Whether to enable Spam Scanner virus protection on this domain

has_recipient_verificationboolean

Global domain default for whether to require alias recipients to click an email verification link for emails to flow through

ignore_mx_checkboolean

Whether to ignore the MX record check on the domain for verification (mainly for advanced MX routing setups)

allow_subdomain_forwardingboolean

Allow wildcard subdomain forwarding. When enabled on a paid plan (Enhanced Protection or Team), any subdomain that has no DNS records of its own inherits the forwarding configuration published at this domain’s root (apex). Verified ownership is required: the apex must publish a forward-email-site-verification record matching this domain. This setting does not apply to the free plan.

has_delivery_logsboolean

Opt-in to store headers and metadata (excluding message content) for successfully forwarded, webhook-sent, outbound SMTP, and IMAP-delivered emails, with logs retained for 7 days. This feature helps you monitor and troubleshoot email delivery performance with detailed insights into successful transmissions.

retention_daysinteger

Number of days to store outbound SMTP emails (0 = purge immediately)

max_quota_per_aliasstring

Storage quota per alias (e.g. '1 GB', parsed into bytes)

has_custom_s3boolean

Whether to enable custom S3-compatible storage for IMAP/SQLite backups on this domain

s3_endpointstring uri

Custom S3-compatible endpoint URL (e.g. https://s3.us-east-1.amazonaws.com)

s3_access_key_idstring

S3 access key ID. Encrypted at rest. Leave blank when updating to keep existing value.

s3_secret_access_keystring

S3 secret access key. Encrypted at rest. Leave blank when updating to keep existing value.

s3_regionstring

S3 region (e.g. us-east-1, auto). Defaults to auto.

s3_bucketstring

S3 bucket name for storing backups. The bucket must already exist and must not be publicly accessible.

allowliststring[]

List of allowlisted senders (IP addresses, fully qualified domain names, email addresses, or wildcard TLDs). When set, only mail from these senders will be accepted. Replaces the existing list. Wildcard public-suffix rules may contain multiple labels, for example *.gov.co and *.gov.br; they match senders under that exact suffix.

denyliststring[]

List of denylisted senders (IP addresses, fully qualified domain names, email addresses, or wildcard TLDs). Mail from these senders will be rejected. Replaces the existing list. Wildcard public-suffix rules may contain multiple labels, for example *.gov.co and *.gov.br; they match senders under that exact suffix.

Response

Domain updated successfully

domain_updatesobject[]
has_pending_domain_updatesboolean
has_newsletterboolean
ignore_mx_checkboolean
allow_subdomain_forwardingboolean

Allow wildcard subdomain forwarding. When enabled on a paid plan (Enhanced Protection or Team), any subdomain that has no DNS records of its own inherits the forwarding configuration published at this domain’s root (apex). Verified ownership is required: the apex must publish a forward-email-site-verification record matching this domain. This setting does not apply to the free plan.

has_delivery_logsboolean
retention_daysinteger
has_regexboolean
has_catchallboolean
allowliststring[]
denyliststring[]
restricted_alias_namesstring[]
has_adult_content_protectionboolean
has_phishing_protectionboolean
has_executable_protectionboolean
has_virus_protectionboolean
is_catchall_regex_disabledboolean
has_smtpboolean
is_smtp_suspendedboolean
planstring
max_recipients_per_aliasinteger
alias_default_smtp_limitinteger

Default daily SMTP sending limit applied to newly created aliases on this domain. Set to 0 to disable (aliases will use the domain-wide limit). Cannot exceed the domain's effective SMTP limit.

smtp_portstring
membersobject[]
invitesobject[]
namestring
has_mx_recordboolean
has_txt_recordboolean
has_dkim_recordboolean
has_return_path_recordboolean
has_dmarc_recordboolean
has_strict_dmarcboolean
has_spf_recordboolean
has_autoconfig_recordboolean
has_autodiscover_recordboolean
has_recipient_verificationboolean
has_custom_verificationboolean
has_custom_s3boolean

Whether this domain uses custom S3-compatible storage for backups

s3_endpointstring

Custom S3-compatible endpoint URL (e.g. https://s3.us-east-1.amazonaws.com, https://<accountid>.r2.cloudflarestorage.com)

s3_regionstring

S3 region (e.g. us-east-1, auto). Defaults to auto if not specified.

s3_bucketstring

S3 bucket name for storing backups. The bucket must already exist.

require_tls_inboundboolean

When enabled, reject inbound emails not sent over TLS

verification_recordstring
idstring
object'domain'
created_atstring date-time
updated_atstring date-time
storage_usedinteger
storage_used_by_aliasesinteger
storage_quotainteger
zone_filestring

Every DNS record the domain needs (MX, verification, SPF, DKIM, Return-Path, DMARC, and autodiscovery) as a zone file to import into a DNS provider. Only included when a domain is retrieved or created, for domain admins.

linkstring uri

Changes

No recorded changes to this operation across all 1 revision of this API.