Overview
- Full name
docker.io/tianon/exim4- Registry
- docker.io
- Namespace
- tianon
- Repository
- exim4
- Cached tags
- 2
- Last synced
- 07/06/2026, 10:28 AM
Introduction
tianon exim4 SMTP 邮件传输代理镜像,适合发送系统通知、应用邮件与小型邮件中继私有化部署。
Details
tianon/exim4 运行 Debian exim4 MTA,可配置 smarthost 中继或本地投递。典型用于应用 reset 邮件、监控告警 SMTP,与 Postfix 同类。定位为邮件传输服务,需 DNS MX/SPF 与配置 volume;K8s 可 Deployment,注意 25 端口策略。
快速启动
docker run -d --name exim4 \
-p 25:25 \
docker.io/tianon/exim4:latest
推荐实践
docker run -d --name exim4 \
--restart unless-stopped \
-p 25:25 \
-e EXIM4_SMARTHOST=smtp.relay.internal::587 \
-v /opt/exim4/config:/etc/exim4 \
docker.io/tianon/exim4:4.96
核心参数说明
-p 25:25— SMTP 入站/出站端口-e EXIM4_SMARTHOST— 上游中继服务器-v .../config:...— exim4 路由与 ACL 配置--restart unless-stopped— MTA 持续在线- 固定 tag — exim4 版本 pin
Kubernetes
apiVersion: apps/v1
kind: Deployment
metadata:
name: exim4
spec:
replicas: 2
selector:
matchLabels:
app: exim4
template:
metadata:
labels:
app: exim4
spec:
containers:
- name: exim4
image: docker.io/tianon/exim4:4.96
ports:
- containerPort: 25
volumeMounts:
- name: config
mountPath: /etc/exim4
volumes:
- name: config
configMap:
name: exim4-config
---
apiVersion: v1
kind: Service
metadata:
name: exim4
spec:
selector:
app: exim4
ports:
- port: 25
targetPort: 25
云环境 25 端口常受限,优先 smarthost 587;ConfigMap 管理路由规则。
Latest tags (20)
View all 2 tags →| Tag | Arch | Pushed At | Size | Digest | Sync | Wish | Action |
|---|---|---|---|---|---|---|---|
docker.io/tianon/exim4 :latest | linux/amd64 | 2026/06/24 17:57 | 53.5 MB | sha256:99d9f456aa4f… | |||
docker.io/tianon/exim4 :test | linux/amd64 | 2023/03/01 06:32 | 2.0 MB | sha256:005c57d9917d… |