Skip to main content

Name

domain — configure domain specific options

Description

domain "example.com" {
  # domain specific settings
}

binding example {
  domain "example.com" {
    # domain specific settings for the "example" binding
  }
}

Use the domain stanza to define per-domain configuration options. domain stanzas can be nested beneath binding stanzas creating a binding:domain configuration.

In addition to defining domain stanzas using domain names, you can also use IP addresses, for example domain "192.0.43.10" { }. When declaring IPv6 domains use the following syntax:

domain "[IPv6:fd82:7796:815b:be0:222:19ff:fe52:3629]" {
  # domain specific settings
}

**Regex Domains. ** In addition to specifying a domain by domain name, you may use Perl compatible regular expression syntax to define a "Regex Domain". Using regex domains you can define common rules for domains that have similar configurations, without needing to specify the rules for every possible matching domain.

domain "example.com" {
  max_outbound_connections = 20
}

domain "/(?:^|[.])example[.](/momentum/3/3-reference/com-co-uk)$/" {
  max_outbound_connections = 15
  max_deliveries_per_connection = 5
}

In the example above, mail for example.com will use no more than 20 connections, and will send no more than 5 messages on a given connection before tearing it down. Mail for example.co.uk will have max_deliveries_per_connection set to 5 and max_outbound_connections set to 15, as would mail for any sub-domain of example.com or example.co.uk.

Option resolution will always match a value defined in a normal domain stanza before looking for a matching regex domain stanza in the same container, which is why example.com would have max_outbound_connections set to 20, despite it being set to 15 in the regex domain stanza that matches.

If multiple regex domain stanzas are declared in the same container, then normal domain stanzas are checked first before finding a match from the regex domain stanzas in the order that the regex domain stanzas were declared in the configuration file.

Note

You almost always want to anchor the start and end of your regular expressions when using them for regex domains, otherwise they will perform substring matching which might have unexpected side effects, such as matching subdomains of "bad guy" domains and routing unwanted mail via trusted interfaces.

For domain naming when using Momentum Mobile, see Multi-protocol Domain Naming.

Scope and Valid Options

domain is valid in the binding, binding_group and global scopes.

Options Valid in the domain Scope

The options valid in the domain scope are as follows:

Option/DescriptionDefaultScopes
adaptive_adjustment_interval – Throttle the adaptive adjustment interval60binding, binding_group, domain, global
adaptive_alert_email_destination – The address where adaptive alerts should be sent binding, binding_group, domain, global
adaptive_alert_email_sender – Set the sender address of the alert emailNULLbinding, binding_group, domain, global
adaptive_attempt_threshold – The minimum delivery attempts over a period during which bounce stats are collected and suspensions attempted2000binding, binding_group, domain, global
adaptive_body_timeout – Set the bounds for the adaptive option binding, binding_group, domain, global
adaptive_default_suspension – The amount of time to suspend a domain4 hoursbinding, binding_group, domain, global
adaptive_default_suspension_enabled – Enables and disables adaptive_rejection_rate_suspension_percentagefalsebinding, binding_group, domain, global
adaptive_ehlo_timeout – Set the bounds for the adaptive option binding, binding_group, domain, global
adaptive_enabled – Whether to enable the adaptive module for a specific scopefalsebinding, binding_group, domain, global
adaptive_fbl_volume_threshold – The minimum total delivered mail count over a period during which FBL stats are collected20000binding, binding_group, domain, global
adaptive_idle_timeout – Set the bounds for the adaptive option binding, binding_group, domain, global
adaptive_mailfrom_timeout – Set the bounds for the adaptive option binding, binding_group, domain, global
adaptive_max_deliveries_per_connection – Set the bounds for the adaptive option binding, binding_group, domain, global
adaptive_max_outbound_connections – Set the bounds for the adaptive option binding, binding_group, domain, global
adaptive_max_recipients_per_batch – Set the bounds for the adaptive option binding, binding_group, domain, global
adaptive_max_recipients_per_connection – Set the bounds for the adaptive option binding, binding_group, domain, global
adaptive_max_resident_active_queue – Set the bounds for the adaptive option binding, binding_group, domain, global
adaptive_max_retries – Set the bounds for the adaptive option binding, binding_group, domain, global
adaptive_max_retry_interval – Set the bounds for the adaptive option binding, binding_group, domain, global
adaptive_notification_events – Configure the events that will trigger an email notificationthrottle suspension blackholebinding, binding_group, domain, global
adaptive_notification_events – Configure the events that will trigger an email notificationthrottle suspension blackholebinding, binding_group, domain, global
adaptive_notification_interval – The throttle for adaptive alert notification emails3600binding, binding_group, domain, global
adaptive_outbound_throttle_messages – Set the bounds for the adaptive option binding, binding_group, domain, global
adaptive_positive_adjustment_interval – Throttle positive adjustments to adaptive changes3600binding, binding_group, domain, global
adaptive_rcptto_timeout – Set the bounds for the adaptive option binding, binding_group, domain, global
adaptive_rejection_rate_suspension_percentage – The rate at which messages are rejected20binding, binding_group, domain, global
adaptive_retry_fuzz – Allow greater control over bulk message retries in cases where all messages for a domain have to be retried4096binding, binding_group, domain, global
adaptive_retry_interval – Set the bounds for the adaptive option binding, binding_group, domain, global
adaptive_rset_timeout – Set the bounds for the adaptive option binding, binding_group, domain, global
adaptive_scope – Define the scope applicable to adaptive deliveryautobinding, binding_group, domain, global
adaptive_sweep_rule (scope) – Set the thresholds and actions for adaptive fbl and bounce rules binding, binding_group, domain, global
adaptive_sweep_rule_enabled – Enable or disable adaptive_sweep_rule in a specified scope1binding, binding_group, domain, global
alias_schemes – Enable named alias expansion schemes domain, global, pathway, pathway_group
apn_expiry – Define the number of seconds after which an APNs notification is no longer validyesbinding, binding_group, domain, global
blackhole – Blackhole mailfalsebinding, binding_group, domain, global
body_timeout – Network timeout once the DATA phase is complete600binding, binding_group, domain, global
bounce_behavior – Configure the action taken when a message is classified as a bouncepassdomain, global
bounce_pattern – Configure the pattern that inbound email addresses must match to be considered bounces domain, global
bounces_inline_original – How much of the original message to include in MDNsheadersbinding, binding_group, domain, global
cluster_max_outbound_connections – Set the maximum number of outbound connections for a domain-1binding, domain, global, host
cluster_outbound_throttle_connections – Limit the rate at which connections are established binding_group, domain, global
cluster_outbound_throttle_messages – Limit the rate at which messages are delivered binding_group, domain, global
cluster_scope_max_outbound_connections – Provide traffic shaping for outbound connections binding, binding_group, domain, global, host
connect_timeout – Set the connection timeout300binding, binding_group, domain, global
connect_timeout_to_delay – Time interval before moving mail into the delayed queue900binding, binding_group, domain, global
connection_allocation_aggressiveness – Tune the aggressiveness for establishing new connections to domainsnormalbinding, binding_group, domain, global
delay_dsn_max_retry_interval – Maximum interval for sending DSNs to the sender of a message that has not yet been delivered43200binding, binding_group, domain, global
delay_dsn_retry_interval – Base interval for sending DSNs to the sender of a message that has not yet been delivered3600binding, binding_group, domain, global
delivery_method – Set the delivery methodESMTP, SMTPbinding, binding_group, domain, global
delivery_response_timeout – Time to wait for a response to an outbound request5000binding, domain, global
dkim – Enable or disable signing messages binding, binding_group, domain, global
dns_failures_to_purge – Configure the maximum number of DNS lookups10domain, global
domainkeys – Enable or disable domainkeys signing binding, binding_group, domain, global
drop_body_after_trans_fail – Number of retry attempts before freeing message memory3binding, binding_group, domain, global
ecstream_port – Configure the port for ecstream deliveries1825binding, binding_group, domain, global
ecstream_timeout – The amount of time to wait for an ecstream connection to be established600binding, binding_group, domain, global
ehlo_hostname – Set the hostname used for EHLO in outbound mailhostnamebinding, binding_group, domain, global
ehlo_timeout – Network timeout for EHLO300binding, binding_group, domain, global
enable_fbl_header_insertion – Enable or disable fbl header insertion binding, binding_group, domain, global
exclude_vctx – Exclude validation connection context keys from being journaled in the spool metadata binding, binding_group, domain, global
exclude_vctx – Exclude validation message context keys from being journaled in the spool metadata binding, binding_group, domain, global
fully_resolve_before_smtp – Resolve all MX and A records before attempting deliverytruebinding, binding_group, domain, global
gateway – Configure a static SMTP route for mail binding, binding_group, domain, global
gcm_application_id – Define the package name of the Android application allowed to received notifications binding, binding_group, domain, global
gcm_authorization_token_id – The authorization token that permits sending Google push notifications binding, binding_group, domain, global
gcm_delay_while_idle – Whether or not to send the notification immediately if a device is idlefalsebinding, binding_group, domain, global
gcm_dry_run – Test a request without actually sending a messagefalsebinding, binding_group, domain, global
gcm_ttl – Default Time To Live for notifications-1binding, binding_group, domain, global
generate_bounces – Generate MDNs if mail is failed after receptiontruebinding, binding_group, domain, global
generate_delay_dsn – Generate DSNs if mail is delayedfalsebinding, binding_group, domain, global
host_failure_retry – Time to wait before attempting a retry120domain, global
http_basic_auth – Define the user credentials when using basic HTTP authentication binding, binding_group, domain, global
http_host – Define the HTTP host binding, binding_group, domain, global
http_method – Define the HTTP method to usePOSTbinding, binding_group, domain, global
http_uri – Define the HTTP URI that you wish to connect to binding, binding_group, domain, global
http_version – Define the HTTP version to use1.1binding, binding_group, domain, global
idle_timeout – Time to maintain idle outbound connections5binding, binding_group, domain, global
lmtp_port – Configure the port for LMTP deliveries2003binding, binding_group, domain, global
mailerdaemon – Set the From: address for MDNs binding, binding_group, domain, global
mailfrom_timeout – Timeout after MAIL FROM300binding, binding_group, domain, global
max_deliveries_per_connection – Maximum number of messages to deliver before closing a connection0binding, binding_group, domain, global
max_outbound_connections – Set the maximum number of outbound connections32binding, binding_group, domain, global, host
max_recipients_per_batch – The maximum number of recipients to send in a single outbound message transaction100binding, binding_group, domain, global
max_recipients_per_connection – The maximum number of recipients to send on a connection0binding, binding_group, domain, esmtp_listener, global, listen, peer
max_resident_active_queue – Threshold above which messages are not held in memory250binding, binding_group, domain, global
max_retries – Override the system configured max_retries binding, binding_group, domain, global
max_retry_interval – Maximum retry interval43200binding, binding_group, domain, global
mdn_failures_notify – Mailbox to which to send null recipient MDNs binding, binding_group, domain, global
message_expiration – Time to live for messages86400binding, binding_group, domain, global
mx_failures_fallback_to_a – Configure the maximum number of times an MX lookup will be attempted3domain, global
mx_failures_to_delay – Number of consecutive failures before a domain is auto-delayed50domain, global
never_attempt_expired_messages – Never attempt delivery of expired messagesfalsebinding, binding_group, domain, global
never_retry – Whether or not to retry delivery of failed messagesfalsebinding, binding_group, domain, global
opendkim_sign – Whether or not to enable OpenDKIM signingtruebinding, binding_group, domain, global
outbound_throttle_connections – Limit the rate at which connections are established binding, binding_group, domain, global
outbound_throttle_messages – Limit the rate at which messages are delivered binding, binding_group, domain, global
rcptto_timeout – Timeout after RCPT TO300binding, binding_group, domain, global
remote_smtp_port – Set the port to be used for SMTP deliveries25binding, binding_group, domain, global
response_transcode_pattern – The regex pattern for comparison to a server response binding, binding_group, domain, global
response_transcode_replace – The replacement string for a server response binding, binding_group, domain, global
retry_interval – Base retry interval1200binding, binding_group, domain, global
routes – Configure message routing domain, global
rset_timeout – Set the timeout after RSET30binding, binding_group, domain, global
scope_max_outbound_connections – Provide traffic shaping for outbound connections binding, binding_group, domain, global
send_8bitmime – Enable advertising of 8BITMIME when sending mailnobinding, binding_group, domain, global
suspend_delivery – Prevent outbound mail deliveryfalsebinding, binding_group, domain, global
tls – Determine whether to use a TLS connection for outbound mailnobinding, binding_group, domain, global
tls_ca – Certificate authority for outbound mail binding, binding_group, domain, global
tls_certificate – Certificate to use for inbound and outbound mail binding, binding_group, domain, ecstream_listener, esmtp_listener, global, http_listener, listen, pathway, pathway_group, peer, xmpp_listener
tls_ciphers – Allowable ciphers for a TLS session binding, binding_group, domain, ecstream_listener, esmtp_listener, global, http_listener, listen, pathway, pathway_group, peer, xmpp_listener
tls_ifavailable_fallback – Determine the behavior if TLS negotiation failstruebinding, binding_group, domain, global
tls_key – the TLS key to use for outbound mail or inbound mail binding, binding_group, domain, ecstream_listener, esmtp_listener, global, http_listener, listen, pathway, pathway_group, peer, xmpp_listener
tls_protocols – Allowable ciphers for TLS inbound and outbound sessions binding, binding_group, domain, ecstream_listener, esmtp_listener, global, http_listener, listen, pathway, pathway_group, peer
tls_verify – Specify how to handle the remote certificatesnobinding, binding_group, domain, global
transform_8bitmime_content – Enable 8BITMIME downconversion when sending mailifneededbinding, binding_group, domain, global
xclient – Use the XCLIENT extension to SMTP for outbound mailnobinding, binding_group, domain, global
xmpp_dialback_secret – Use when verifying the XMPP server dialback key (Mobile Momentum) domain
xmpp_role – Define whether a domain is an XMPP server or client (Mobile Momentum) domain

See Also

Was this page helpful?