Fix ooo/sieve when proxy protocol is in use

This commit is contained in:
Florent Daigniere
2024-02-29 13:06:15 +01:00
parent 3d21ff18e9
commit 2afa9dca51
2 changed files with 5 additions and 0 deletions

View File

@@ -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 %}

View File

@@ -0,0 +1 @@
Fix ooo/sieve replies when proxy protocol is in use