mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2024-11-29 01:56:13 +08:00
feat:添加maddy-mail到列表 (#574)
This commit is contained in:
parent
f9962395d1
commit
bda133a980
56
apps/maddy-mail/0.7/data.yml
Normal file
56
apps/maddy-mail/0.7/data.yml
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
additionalProperties:
|
||||||
|
formFields:
|
||||||
|
- default: 25
|
||||||
|
disabled: true
|
||||||
|
envKey: SMTP_IN_PORT
|
||||||
|
labelEn: SMTP inbound port
|
||||||
|
labelZh: SMTP 入站端口
|
||||||
|
required: true
|
||||||
|
rule: paramPort
|
||||||
|
type: number
|
||||||
|
- default: 143
|
||||||
|
disabled: true
|
||||||
|
envKey: IMAP4_PORT
|
||||||
|
labelEn: IMAP4 port
|
||||||
|
labelZh: IMAP4 端口
|
||||||
|
required: true
|
||||||
|
rule: paramPort
|
||||||
|
type: number
|
||||||
|
- default: 993
|
||||||
|
disabled: true
|
||||||
|
envKey: IMAP4_PORT2
|
||||||
|
labelEn: IMAP4 port
|
||||||
|
labelZh: IMAP4 端口
|
||||||
|
required: true
|
||||||
|
rule: paramPort
|
||||||
|
type: number
|
||||||
|
- default: 465
|
||||||
|
disabled: true
|
||||||
|
envKey: SMTP_S_PORT
|
||||||
|
labelEn: SMTP Submission ports
|
||||||
|
labelZh: SMTP 提交端口
|
||||||
|
required: true
|
||||||
|
rule: paramPort
|
||||||
|
type: number
|
||||||
|
- default: 587
|
||||||
|
disabled: true
|
||||||
|
envKey: SMTP_S_PORT2
|
||||||
|
labelEn: SMTP Submission ports
|
||||||
|
labelZh: SMTP 提交端口
|
||||||
|
required: true
|
||||||
|
rule: paramPort
|
||||||
|
type: number
|
||||||
|
- default: mail.example.com
|
||||||
|
edit: true
|
||||||
|
envKey: MAIL_HOSTNAME
|
||||||
|
labelEn: Mail MX hostname
|
||||||
|
labelZh: 邮箱 MX 主机名
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: example.com
|
||||||
|
edit: true
|
||||||
|
envKey: MAIL_DOMAIN
|
||||||
|
labelEn: Mail domain
|
||||||
|
labelZh: 邮箱域名
|
||||||
|
required: true
|
||||||
|
type: text
|
29
apps/maddy-mail/0.7/docker-compose.yml
Normal file
29
apps/maddy-mail/0.7/docker-compose.yml
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
maddymail:
|
||||||
|
container_name: ${CONTAINER_NAME}
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- 1panel-network
|
||||||
|
ports:
|
||||||
|
- "${SMTP_IN_PORT}:25"
|
||||||
|
- "${IMAP4_PORT}:143"
|
||||||
|
- "${SMTP_S_PORT}:465"
|
||||||
|
- "${SMTP_S_PORT2}:587"
|
||||||
|
- "${IMAP4_PORT2}:993"
|
||||||
|
volumes:
|
||||||
|
- maddydata:/data
|
||||||
|
environment:
|
||||||
|
- MADDY_HOSTNAME=${MAIL_HOSTNAME}
|
||||||
|
- MADDY_DOMAIN=${MAIL_DOMAIN}
|
||||||
|
image: foxcpp/maddy:0.7.0
|
||||||
|
labels:
|
||||||
|
createdBy: "Apps"
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
maddydata:
|
||||||
|
external: true
|
||||||
|
|
||||||
|
networks:
|
||||||
|
1panel-network:
|
||||||
|
external: true
|
126
apps/maddy-mail/README.md
Normal file
126
apps/maddy-mail/README.md
Normal file
@ -0,0 +1,126 @@
|
|||||||
|
# 使用说明
|
||||||
|
|
||||||
|
## 1. 准备域名证书
|
||||||
|
使用`acme.sh`、`certbot`、手动上传等方式准备好域名证书,注意需要按需修改。
|
||||||
|
|
||||||
|
证书对应域名为邮箱`MX`主机名如`mail.example.com `。
|
||||||
|
|
||||||
|
## 2. 创建Docker存储卷
|
||||||
|
```
|
||||||
|
docker volume create maddydata
|
||||||
|
```
|
||||||
|
|
||||||
|
## 3. 安装应用
|
||||||
|
|
||||||
|
应用商店安装应用,
|
||||||
|
|
||||||
|
第一次安装会显示异常,容器无法正常运行,不必在意,因为缺少证书文件。
|
||||||
|
|
||||||
|
忽略错误,进行下一步操作。
|
||||||
|
|
||||||
|
|
||||||
|
## 4. 域名证书存放到存储卷
|
||||||
|
|
||||||
|
存储卷默认路径如下
|
||||||
|
`/var/lib/docker/volumes/maddydata/_data/`
|
||||||
|
|
||||||
|
```
|
||||||
|
# 进入存储卷路径
|
||||||
|
cd $(docker volume inspect maddydata --format '{{.Mountpoint}}')
|
||||||
|
|
||||||
|
# 创建证书文件夹
|
||||||
|
mkdir -p tls
|
||||||
|
```
|
||||||
|
上传证书和私钥到`tls`文件夹,并重命名为
|
||||||
|
- fullchain.pem
|
||||||
|
- privkey.pem
|
||||||
|
|
||||||
|
按要求上传完成证书文件后,容器会自动正常运行。
|
||||||
|
|
||||||
|
## 5. 设置DKIM DNS解析
|
||||||
|
### 5.1 获取DKIM值
|
||||||
|
|
||||||
|
当容器正常运行后
|
||||||
|
|
||||||
|
在`/var/lib/docker/volumes/maddydata/_data/dkim_keys`路径下
|
||||||
|
|
||||||
|
会有个类似`example.com_default.dns`的文件
|
||||||
|
|
||||||
|
其中则是需要获取的相关信息。
|
||||||
|
|
||||||
|
- 注意按需修改域名
|
||||||
|
|
||||||
|
终端查看
|
||||||
|
```
|
||||||
|
cat /var/lib/docker/volumes/maddydata/_data/dkim_keys/example.com_default.dns
|
||||||
|
```
|
||||||
|
|
||||||
|
会得到类似以下内容
|
||||||
|
```
|
||||||
|
default._domainkey.example.org. TXT "v=DKIM1; k=ed25519; p=nAcUUozPlhc4VPhp7hZl+owES7j7OlEv0laaDEDBAqg="
|
||||||
|
```
|
||||||
|
|
||||||
|
### 5.2 设置DNS TXT记录
|
||||||
|
|
||||||
|
根据获取的信息设置`DNS解析`
|
||||||
|
|
||||||
|
例子如下:
|
||||||
|
为 `default._domainkey.example.com` 添加`TXT`记录,值设置为`v=DKIM1; k=ed25519; p=nAcUUozPlhc4VPhp7hZl+owES7j7OlEv0laaDEDBAqg=`。
|
||||||
|
|
||||||
|
## 6. 设置DNS解析
|
||||||
|
|
||||||
|
- 注意按需修改
|
||||||
|
|
||||||
|
| 记录类型 | 域名 | 值 |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| A | `mail.example.com` | `服务器ipv4地址` |
|
||||||
|
| A | `example.com` | `服务器ipv4地址` |
|
||||||
|
| AAAA | `mail.example.com` | `服务器ipv6地址(如果有)` |
|
||||||
|
| AAAA | `example.com` | `服务器ipv6地址(如果有)` |
|
||||||
|
| MX | `example.com` | `mail.example.com` |
|
||||||
|
| TXT | `mail.example.com` | `v=spf1 mx ~all` |
|
||||||
|
| TXT | `example.com` | `v=spf1 mx ~all` |
|
||||||
|
| TXT | `_dmarc.example.com` | `v=DMARC1; p=quarantine; ruf=mailto:postmaster@example.com` |
|
||||||
|
| TXT | `_mta-sts.example.com` | `v=STSv1; id=1` |
|
||||||
|
| TXT | `_smtp._tls.example.com` | `v=TLSRPTv1;rua=mailto:postmaster@example.com` |
|
||||||
|
|
||||||
|
## 7. 创建发送账户
|
||||||
|
|
||||||
|
面板`容器`界面,连接容器终端,执行以下命令
|
||||||
|
|
||||||
|
- 注意按需修改
|
||||||
|
|
||||||
|
```
|
||||||
|
maddy creds create postmaster@example.com
|
||||||
|
|
||||||
|
maddy imap-acct create postmaster@example.com
|
||||||
|
```
|
||||||
|
结束
|
||||||
|
|
||||||
|
# 原始相关
|
||||||
|
|
||||||
|
Maddy Mail Server
|
||||||
|
=====================
|
||||||
|
> Composable all-in-one mail server.
|
||||||
|
|
||||||
|
Maddy Mail Server implements all functionality required to run a e-mail
|
||||||
|
server. It can send messages via SMTP (works as MTA), accept messages via SMTP
|
||||||
|
(works as MX) and store messages while providing access to them via IMAP.
|
||||||
|
In addition to that it implements auxiliary protocols that are mandatory
|
||||||
|
to keep email reasonably secure (DKIM, SPF, DMARC, DANE, MTA-STS).
|
||||||
|
|
||||||
|
It replaces Postfix, Dovecot, OpenDKIM, OpenSPF, OpenDMARC and more with one
|
||||||
|
daemon with uniform configuration and minimal maintenance cost.
|
||||||
|
|
||||||
|
**Note:** IMAP storage is "beta". If you are looking for stable and
|
||||||
|
feature-packed implementation you may want to use Dovecot instead. maddy still
|
||||||
|
can handle message delivery business.
|
||||||
|
|
||||||
|
[![CI status](https://img.shields.io/github/workflow/status/foxcpp/maddy/Testing%20and%20release%20preparation?style=flat-square)](https://github.com/foxcpp/maddy/actions/workflows/cicd.yml)
|
||||||
|
[![Issues tracker](https://img.shields.io/github/issues/foxcpp/maddy)](https://github.com/foxcpp/maddy)
|
||||||
|
|
||||||
|
* [Setup tutorial](https://maddy.email/tutorials/setting-up/)
|
||||||
|
* [Documentation](https://maddy.email/)
|
||||||
|
|
||||||
|
* [IRC channel](https://webchat.oftc.net/?channels=maddy&uio=MT11bmRlZmluZWQb1)
|
||||||
|
* [Mailing list](https://lists.sr.ht/~foxcpp/maddy)
|
20
apps/maddy-mail/data.yml
Normal file
20
apps/maddy-mail/data.yml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
name: Maddy Mail Server
|
||||||
|
tags:
|
||||||
|
- 邮件服务
|
||||||
|
title: 可组合的多合一邮件服务器
|
||||||
|
type: 邮件服务
|
||||||
|
description: 可组合的多合一邮件服务器
|
||||||
|
additionalProperties:
|
||||||
|
key: maddy-mail
|
||||||
|
name: Maddy Mail Server
|
||||||
|
tags:
|
||||||
|
- Email
|
||||||
|
shortDescZh: 可组合的多合一邮件服务器
|
||||||
|
shortDescEn: Composable all-in-one mail server
|
||||||
|
type: tool
|
||||||
|
crossVersionUpdate: true
|
||||||
|
limit: 1
|
||||||
|
recommend: 0
|
||||||
|
website: https://maddy.email
|
||||||
|
github: https://github.com/foxcpp/maddy
|
||||||
|
document: https://maddy.email
|
BIN
apps/maddy-mail/logo.png
Normal file
BIN
apps/maddy-mail/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.9 KiB |
Loading…
Reference in New Issue
Block a user