Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion postfix/postfix-main.cf.template
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ command_time_limit = 30s
maillog_file = /var/log/postfix.log

# Rate limiting - prevent abuse/DoS
smtpd_client_connection_rate_limit = 10
# Connection rate limit is per source IP per anvil_rate_time_unit.
# 10 was too low for load testing (20 concurrent users from one IP exhausted
# the limit in ~10s, causing connection resets for users 11-20). 100 allows
# realistic concurrency headroom while still protecting against DoS.
smtpd_client_connection_rate_limit = 100
smtpd_client_message_rate_limit = 50
smtpd_client_recipient_rate_limit = 100
anvil_rate_time_unit = 60s
Expand Down
Loading