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

推荐订阅源

IT之家
IT之家
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
A
About on SuperTechFans
博客园 - 聂微东
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog RSS Feed
U
Unit 42
Stack Overflow Blog
Stack Overflow Blog
Recent Announcements
Recent Announcements
雷峰网
雷峰网
罗磊的独立博客
Microsoft Security Blog
Microsoft Security Blog
Hugging Face - Blog
Hugging Face - Blog
L
LangChain Blog
人人都是产品经理
人人都是产品经理
The GitHub Blog
The GitHub Blog
F
Fortinet All Blogs
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
H
Help Net Security
P
Proofpoint News Feed
The Cloudflare Blog
D
Docker
大猫的无限游戏
大猫的无限游戏

WishMeLz - 未分类

VOXI 使用记录 · WishMeLz MailHub · WishMeLz Docker 客户端中文 · WishMeLz SuJian 1.0:给自己的博客换一张素笺 · WishMeLz MailHub - 服务条款 · WishMeLz MailHub - 隐私权政策 · WishMeLz blog.itsse.cn 柯尼卡美能达 bizhub C226 复印机 SMB 扫描到电脑配置教程 minio 最后的绝唱 搭建配置流程 - WishMeLz 港卡,CSL 记录 - WishMeLz Safari 解锁 120hz - WishMeLz Racknerd 2025 黑五闪购套餐汇总 - WishMeLz 香港各大机房/商家测试 IP 整理|DMIT、BWG、LocVPS、SurferCloud、UCloud、51IDC 等 NodeBB 搭建安装笔记 v4.x - WishMeLz 阿里云保备案,不花一分钱 - WishMeLz App Store App历史版本下载 - 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 国际许可协议进行许可
可自由转载、引用,但需署名作者且注明文章出处

标签 : 无标签