mirror of
https://github.com/mailscope/kumomta.git
synced 2026-10-29 01:36:14 +00:00
entries in this file must be resolvable domains, and this one has neither A nor MX records
78 lines
2.9 KiB
TOML
78 lines
2.9 KiB
TOML
# This file allows you to declare traffic shaping parameters by domain.
|
|
# Each domain has a section as shown below. The domain name must be enclosed
|
|
# in square-brackets and quotes to be correctly recognized.
|
|
#
|
|
# The default for a domain is to use MX rollup; when this file is loaded,
|
|
# the MX is resolved for the domain and all domains that rollup to that
|
|
# same set of MX records will share those settings.
|
|
# It is an error to list multiple different domains that rollup to the same
|
|
# MX, as that would result in an ambiguous configuration. The error will be
|
|
# noted when the configuration is loaded.
|
|
#
|
|
# If you do not wish to use mx rollup for a domain, you can set
|
|
# `mx_rollup = false` as one of the values in the domain section, as shown
|
|
# in the `example.com` example in this file.
|
|
#
|
|
# If a domain is a NULL MX (such as `example.com`), it cannot be used with
|
|
# mx_rollup, because there are no MX's to roll up into.
|
|
#
|
|
# You may compose multiple shaping files over each other; in that case you
|
|
# have the option of specifying `replace_base = true` in a domain in a
|
|
# later file. That will have the effect of ignoring all previous values
|
|
# for that domain.
|
|
#
|
|
# The acceptable set of values in a domain section are valid parameters to
|
|
# kumo.make_egress_path.
|
|
# <https://docs.kumomta.com/reference/kumo/make_egress_path/>
|
|
#
|
|
# Members of the community are encouraged to share their shaping configuration
|
|
# for various domains; please feel empowered to open a PR!
|
|
|
|
# THESE DEFAULTS HELP KEEP THE SERVER WELL BEHAVED UNLESS OVERRIDDEN
|
|
# OVERRIDE WITH A CUSTOM FILE AND replace_base = true IN A DEFAULT SECTION
|
|
["default"]
|
|
connection_limit = 10
|
|
max_connection_rate = "100/min"
|
|
max_deliveries_per_connection = 100
|
|
max_message_rate = "100/s"
|
|
idle_timeout = "60s"
|
|
tls = "Opportunistic"
|
|
consecutive_connection_failures_before_delay = 100
|
|
|
|
["example.com"]
|
|
mx_rollup = false
|
|
max_deliveries_per_connection = 100
|
|
connection_limit = 3
|
|
|
|
# https://support.google.com/mail/answer/81126
|
|
["gmail.com"]
|
|
max_deliveries_per_connection = 50
|
|
connection_limit = 5
|
|
enable_tls = "Required"
|
|
consecutive_connection_failures_before_delay = 5
|
|
|
|
# PROVIDED BY YAHOO! DIRECTLY
|
|
# https://senders.yahooinc.com/best-practices
|
|
["yahoo.com"]
|
|
max_deliveries_per_connection = 20
|
|
|
|
# PROVIDED BY COMCAST DIRECTLY
|
|
# https://spa.xfinity.com/postmaster
|
|
["comcast.net"]
|
|
connection_limit = 10
|
|
max_deliveries_per_connection = 250
|
|
enable_tls = "Required"
|
|
idle_timeout = "30s"
|
|
consecutive_connection_failures_before_delay = 24
|
|
|
|
|
|
# If you want to declare local overrides with settings for your locally defined
|
|
# egress sources, you can syntax like the following; the section is named:
|
|
# [DOMAIN.sources.SOURCE] where both the DOMAIN and the SOURCE need to be quoted
|
|
# with double quotes.
|
|
# If you do want to do this, don't edit this file at /opt/kumomta/share/policy-extras/shaping.toml,
|
|
# but instead create your own copy at `/opt/kumomta/etc/shaping.toml` and provide
|
|
# your overrides there.
|
|
["example.com".sources."my source name"]
|
|
connection_limit = 5
|