traefik reverse proxy for port 25

This commit is contained in:
vincent 2023-10-07 18:00:37 +02:00
parent 211a2adc5c
commit 6d2c5f57a5
2 changed files with 4 additions and 4 deletions

View File

@ -15,8 +15,8 @@ job "dockermailserver" {
mode = "host" mode = "host"
port "smtp" { port "smtp" {
to = 25 to = 25
static = 25 # static = 25
host_network = "public" # host_network = "public"
} }
port "imap" { port "imap" {
to = 10993 to = 10993
@ -155,7 +155,7 @@ job "dockermailserver" {
template { template {
data = <<EOH data = <<EOH
#postscreen_upstream_proxy_protocol = haproxy postscreen_upstream_proxy_protocol = haproxy
EOH EOH
destination = "local/postfix-main.cf" destination = "local/postfix-main.cf"
} }

View File

@ -26,7 +26,7 @@ job "traefik-ingress" {
host_network = "public" host_network = "public"
} }
port "smtp" { port "smtp" {
static = 12346 static = 25
host_network = "public" host_network = "public"
} }
port "esmtp" { port "esmtp" {