bypasss traefik for smtp

This commit is contained in:
vincent 2023-10-03 19:27:36 +02:00
parent fb5f6978ac
commit b4d1c7ffb9
2 changed files with 6 additions and 6 deletions

View File

@ -15,6 +15,8 @@ job "dockermailserver" {
mode = "host" mode = "host"
port "smtp" { port "smtp" {
to = 25 to = 25
static = 25
host_network = "public"
} }
port "imap" { port "imap" {
to = 10993 to = 10993
@ -31,10 +33,8 @@ job "dockermailserver" {
"traefik.tcp.routers.smtp.service=smtp", "traefik.tcp.routers.smtp.service=smtp",
"traefik.tcp.routers.smtp.entrypoints=smtp", "traefik.tcp.routers.smtp.entrypoints=smtp",
"traefik.tcp.routers.smtp.rule=HostSNI(`*`)", "traefik.tcp.routers.smtp.rule=HostSNI(`*`)",
"traefik.tcp.routers.smtp.tls.passthrough=true",
"traefik.tcp.routers.smtp.tls=false",
"traefik.tcp.services.smtp.loadbalancer.proxyProtocol.version=1", "traefik.tcp.services.smtp.loadbalancer.proxyProtocol.version=1",
] ]
check { check {
name = "smtp_probe" name = "smtp_probe"
type = "tcp" type = "tcp"
@ -115,7 +115,7 @@ job "dockermailserver" {
DMS_VMAIL_GID = 100 DMS_VMAIL_GID = 100
SSL_TYPE= "letsencrypt" SSL_TYPE= "letsencrypt"
SSL_DOMAIN= "mail.ducamps.eu" SSL_DOMAIN= "mail.ducamps.eu"
LOG_LEVEL="debug" LOG_LEVEL="info"
} }
template { template {
data = <<EOH data = <<EOH
@ -127,7 +127,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 = 25 static = 12346
host_network = "public" host_network = "public"
} }
port "esmtp" { port "esmtp" {