From 4b04aae83b5545e551aa80c62d1e4399706271dd Mon Sep 17 00:00:00 2001 From: link2xt Date: Wed, 20 May 2026 21:06:29 +0200 Subject: [PATCH] feat: reduce maximal_queue_lifetime from 5d to 2d If the message is not delivered within 2 days, it is unlikely to be delivered in 5 days either. --- cmdeploy/src/cmdeploy/postfix/main.cf.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmdeploy/src/cmdeploy/postfix/main.cf.j2 b/cmdeploy/src/cmdeploy/postfix/main.cf.j2 index 9ec9f039..f383e560 100644 --- a/cmdeploy/src/cmdeploy/postfix/main.cf.j2 +++ b/cmdeploy/src/cmdeploy/postfix/main.cf.j2 @@ -117,6 +117,9 @@ default_transport = lmtp-filtermail:inet:[127.0.0.1]:{{ config.filtermail_lmtp_p lmtp-filtermail_initial_destination_concurrency=10000 lmtp-filtermail_destination_concurrency_limit=10000 +# Do not try to deliver messages for more than 2 days. +maximal_queue_lifetime = 2d + {% if not config.ipv4_relay %} # DKIM-sign locally generated mail (bounces, DSNs). # These bypass smtpd, so they need explicit milter configuration.