From 178e018032e0c171d043017265f8e44715781a2c Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Wed, 19 Mar 2025 11:15:48 +0000 Subject: [PATCH] Mailman: make a new SMTP connection for every session Should allow us to load-balance outbound email better among the available mail-frontend servers, in combination with the mailman RR patch. --- roles/mailman/templates/mm_cfg.py.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/mailman/templates/mm_cfg.py.j2 b/roles/mailman/templates/mm_cfg.py.j2 index b0cd8f89..48b48fb8 100644 --- a/roles/mailman/templates/mm_cfg.py.j2 +++ b/roles/mailman/templates/mm_cfg.py.j2 @@ -127,6 +127,10 @@ SMTPHOST = 'mail-frontend.{{ domain }}' SMTPPORT = 10025 SMTP_HELO_HOST = '{{ shard_id }}.mailman.{{ domain }}' +# Establish a new SMTP connection for every session, to effectively +# load-balance outbound email among available mail-frontend servers. +SMTP_MAX_SESSIONS_PER_CONNECTION = 1 + DEFAULT_ARCHIVE = Off DEFAULT_ARCHIVE_PRIVATE = 1 ARCHIVE_TO_MBOX = 2 -- GitLab