More fine grained smtp rate limits.

This commit is contained in:
Andrea Dell'Amico 2023-07-26 15:29:33 +02:00
parent ab6ad88077
commit 06c402c603
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
2 changed files with 16 additions and 0 deletions

View File

@ -276,6 +276,13 @@ postfix_virtual_alias_maps:
postfix_local_dest_concurrency_limit: 2
postfix_default_destination_concurrency_limit: 5
postfix_smtp_destination_concurrency_limit: "{{ postfix_default_destination_concurrency_limit }}"
# Other rate limiting parameters
postfix_enforce_users_rate_limiting: false
postfix_smtpd_client_message_rate_limit: 4
postfix_anvil_rate_time_unit: "60s"
postfix_default_destination_rate_delay: "2s"
postfix_default_destination_recipient_limit: 50
postfix_behind_haproxy: False
postfix_postscreen_port: 1024

View File

@ -745,6 +745,15 @@ smtpd_banner = $myhostname ESMTP $mail_name
local_destination_concurrency_limit = {{ postfix_local_dest_concurrency_limit }}
default_destination_concurrency_limit = {{ postfix_default_destination_concurrency_limit }}
smtp_destination_concurrency_limit = {{ postfix_smtp_destination_concurrency_limit }}
{% if postfix_enforce_users_rate_limiting %}
# Other rate limiting parameters
smtpd_client_message_rate_limit = {{ postfix_smtpd_client_message_rate_limit }}
anvil_rate_time_unit = {{ postfix_anvil_rate_time_unit }}
default_destination_rate_delay = {{ postfix_default_destination_rate_delay }}
default_destination_recipient_limit = {{ postfix_default_destination_recipient_limit }}
{% endif %}
# DEBUGGING CONTROL
#