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=...".