From 564a5254ad8d631171d3f675c4cb61de769bd6e7 Mon Sep 17 00:00:00 2001 From: Christoph Date: Tue, 10 Nov 2026 15:35:48 +0100 Subject: [PATCH] srs delivery template: do not set config_directory in main.cf The instance gets MAIL_CONFIG=/etc/postfix-srs/delivery from postfix@srs-delivery.service; setting it again makes postconf warn. Co-Authored-By: Claude Opus 5.5 --- files/srs/templates/delivery-main.cf.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/files/srs/templates/delivery-main.cf.in b/files/srs/templates/delivery-main.cf.in index b899b58..f4daee1 100644 --- a/files/srs/templates/delivery-main.cf.in +++ b/files/srs/templates/delivery-main.cf.in @@ -105,4 +105,8 @@ smtp_tls_CAfile = @SMTP_TLS_CAFILE@ smtp_tls_mandatory_protocols = @SMTP_TLS_MANDATORY_PROTOCOLS@ smtp_tls_protocols = @SMTP_TLS_PROTOCOLS@ smtp_tls_security_level = @SMTP_TLS_SECURITY_LEVEL@ -config_directory = /etc/postfix-srs/delivery + +# config_directory is intentionally NOT set here: the instance is started by +# postfix@srs-delivery.service with MAIL_CONFIG=/etc/postfix-srs/delivery +# (systemd turns the '-' in the instance name into '/'). Setting it again in +# main.cf makes postconf warn "overriding earlier entry: config_directory=...".