惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

腾讯CDC
The Cloudflare Blog
IT之家
IT之家
V
V2EX
雷峰网
雷峰网
MyScale Blog
MyScale Blog
P
Proofpoint News Feed
Stack Overflow Blog
Stack Overflow Blog
博客园 - Franky
Engineering at Meta
Engineering at Meta
S
SegmentFault 最新的问题
GbyAI
GbyAI
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - 司徒正美
云风的 BLOG
云风的 BLOG
小众软件
小众软件
博客园 - 叶小钗
Blog — PlanetScale
Blog — PlanetScale
C
Check Point Blog
A
About on SuperTechFans
B
Blog
月光博客
月光博客
宝玉的分享
宝玉的分享
Last Week in AI
Last Week in AI

WishMeLz

VOXI 使用记录 · WishMeLz MailHub · WishMeLz Docker 客户端中文 · WishMeLz SuJian 1.0:给自己的博客换一张素笺 · WishMeLz MailHub - 服务条款 · WishMeLz MailHub - 隐私权政策 · WishMeLz blog.itsse.cn blog.itsse.cn 柯尼卡美能达 bizhub C226 复印机 SMB 扫描到电脑配置教程 minio 最后的绝唱 搭建配置流程 - WishMeLz Namecrane/CraneMail 优化访问速度之 - Nginx stream 做 TCP 邮件代理 Scriptable 小组件 - 搬瓦工 - WishMeLz 港卡,CSL 记录 - WishMeLz Electron 主进程起一个可用的 HTTPS 静态服务器 - WishMeLz 目标域名在线测试 - WishMeLz 某x面板每月自动重置流量功能 - WishMeLz Safari 解锁 120hz - WishMeLz Linux 工具箱整理 - WishMeLz Docker 使用指南 - WishMeLz
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 国际许可协议进行许可
可自由转载、引用,但需署名作者且注明文章出处

标签 : 无标签