From 2afa9dca518db3c0bd890ed63a1dda6f44465ee9 Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Thu, 29 Feb 2024 13:06:15 +0100 Subject: [PATCH] Fix ooo/sieve when proxy protocol is in use --- core/dovecot/conf/dovecot.conf | 4 ++++ towncrier/newsfragments/3172.bugfix | 1 + 2 files changed, 5 insertions(+) create mode 100644 towncrier/newsfragments/3172.bugfix diff --git a/core/dovecot/conf/dovecot.conf b/core/dovecot/conf/dovecot.conf index 906b0e30..4ea4fc43 100644 --- a/core/dovecot/conf/dovecot.conf +++ b/core/dovecot/conf/dovecot.conf @@ -5,7 +5,11 @@ log_path = /dev/stderr protocols = imap pop3 lmtp sieve postmaster_address = {{ POSTMASTER }}@{{ DOMAIN }} hostname = {{ HOSTNAMES.split(",")[0] }} +{%- if PROXY_PROTOCOL in ['all', 'all-but-http', 'mail'] %} +submission_host = {{ HOSTNAMES.split(",")[0] }} +{% else %} submission_host = {{ FRONT_ADDRESS }} +{% endif %} {%- if SUBNET6 %} listen = *,:: {% else %} diff --git a/towncrier/newsfragments/3172.bugfix b/towncrier/newsfragments/3172.bugfix new file mode 100644 index 00000000..b4c4e221 --- /dev/null +++ b/towncrier/newsfragments/3172.bugfix @@ -0,0 +1 @@ +Fix ooo/sieve replies when proxy protocol is in use