Make webmails use a different port without proxy protocol

This commit is contained in:
Florent Daigniere
2023-05-09 12:06:04 +02:00
parent a9c92f19ef
commit 7d39741c47
4 changed files with 6 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ COPY proxy.conf login.lua /
RUN echo $VERSION >/version
EXPOSE 80/tcp 443/tcp 110/tcp 143/tcp 465/tcp 587/tcp 993/tcp 995/tcp 25/tcp 4190/tcp
# EXPOSE 10025/tcp 10143/tcp
# EXPOSE 10025/tcp 10143/tcp 14190/tcp
HEALTHCHECK --start-period=60s CMD curl -skfLo /dev/null http://127.0.0.1:10204/health && kill -0 `cat /run/dovecot/master.pid`
VOLUME ["/certs", "/overrides"]

View File

@@ -61,4 +61,7 @@ service managesieve-login {
haproxy = yes
{% endif %}
}
inet_listener sieve-webmail {
port = 14190
}
}

View File

@@ -24,7 +24,7 @@ $config['smtp_user'] = '%u';
$config['smtp_pass'] = '%p';
// Sieve script management
$config['managesieve_host'] = 'tls://{{ FRONT_ADDRESS or "front" }}:4190';
$config['managesieve_host'] = 'tls://{{ FRONT_ADDRESS or "front" }}:14190';
$config['managesieve_conn_options'] = array(
'ssl' => array(
'verify_peer' => false,

View File

@@ -33,7 +33,7 @@
},
"Sieve": {
"host": "{{ FRONT_ADDRESS }}",
"port": 4190,
"port": 14190,
"type": 2,
"shortLogin": false,
"ssl": {