Skip to content

Instantly share code, notes, and snippets.

@RikoDEV
Last active June 22, 2025 19:10
Show Gist options
  • Save RikoDEV/e6a8c3df43b892b6143e4368048240da to your computer and use it in GitHub Desktop.
Save RikoDEV/e6a8c3df43b892b6143e4368048240da to your computer and use it in GitHub Desktop.
Poste.io + Traefik v3 | Docker Compose Setup
networks:
traefik-proxy:
name: traefik_gateway
external: true
services:
mailserver:
image: analogic/poste.io
container_name: mailserver
hostname: mail.example.com
restart: always
environment:
- DISABLE_CLAMAV=TRUE
volumes:
- /etc/localtime:/etc/localtime:ro
- ./data:/data
labels:
- "traefik.enable=true"
- "traefik.http.routers.mailserver.entrypoints=web"
- "traefik.http.routers.mailserver.rule=Host(`mail.example.com`)"
- "traefik.http.routers.mailserver.service=mailserver"
- "traefik.http.services.mailserver.loadbalancer.server.port=80"
- "traefik.tcp.routers.mailserver.entrypoints=websecure"
- "traefik.tcp.routers.mailserver.rule=HostSNI(`mail.example.com`)"
- "traefik.tcp.routers.mailserver.service=mailserver"
- "traefik.tcp.routers.mailserver.tls.passthrough=true"
- "traefik.tcp.services.mailserver.loadbalancer.server.port=443"
networks:
- traefik-proxy
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "25:25"
- "110:110"
- "143:143"
- "465:465"
- "587:587"
- "993:993"
- "995:995"
@YnievesDotNet
Copy link

I did that but continue with fail on the tcp connections.

continue showing the last certificate and not the new

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment