CraneMail 优化访问速度之 - Stunnel/HAProxy - WishMeLz
WishMeLz
·
2025-11-29
·
via WishMeLz - 未分类
HAProxy
haproxy.cfg
global
log stdout format raw local0
maxconn 4096
defaults
mode tcp
timeout connect 10s
timeout client 1m
timeout server 1m
# =============================
# IMAPS - 993 转发
# =============================
frontend imaps_in
bind *:993
default_backend imaps_out
backend imaps_out
server imap_server eu1.workspace.org:993 check
# =============================
# SMTPS - 465 转发
# =============================
frontend smtps_in
bind *:465
default_backend smtps_out
backend smtps_out
server smtp_server eu1.workspace.org:465 check
docker-compose.yml
version: '3.8'
services:
haproxy:
image: haproxy:lts
container_name: haproxy-mail-proxy
restart: always
ports:
- "993:993" # IMAPS
- "465:465" # SMTPS
volumes:
- ./haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
最后编辑时间为: November 29th , 2025 at 09:58 pm
本文由 Wish 创作,采用 知识共享署名 4.0 国际许可协议进行许可
可自由转载、引用,但需署名作者且注明文章出处
标签 : 无标签
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。