Stalwart:安全和现代多合一的开源邮件服务器
Stalwart Mail Server 是一个开源邮件服务器解决方案,支持 SMTP、JMAP、IMAP4 和 POP3 以及广泛的现代功能。它是用 Rust 编写的,旨在实现安全、快速、健壮和可扩展。
(修改密码后,需要重启服务)
配置 webadmin 资源
[webadmin]
resource = "/opt/stalwart-mail/webadmin.zip"
配置域名证书签名
[acme."letsencrypt"]
directory = "https://acme-v02.api.letsencrypt.org/directory"
challenge = "tls-alpn-01"
contact = ["postmaster@%{DEFAULT_DOMAIN}%"]
domains = ["mail.example.org", "imap.example.org", "mx.example.org"]
cache = "%{BASE_PATH}%/etc/acme"
renew-before = "30d"
配置 ASN
[asn]
type = "resource"
expires = "1d"
timeout = "5m"
max-size = 104857600
[asn.urls]
asn = [ "https://cdn.jsdelivr.net/npm/@ip-location-db/asn/asn-ipv4.csv",
"https://cdn.jsdelivr.net/npm/@ip-location-db/asn/asn-ipv6.csv" ]
geo = [ "https://cdn.jsdelivr.net/npm/@ip-location-db/geolite2-geo-whois-asn-country/geolite2-geo-whois-asn-country-ipv4.csv",
"https://cdn.jsdelivr.net/npm/@ip-location-db/geolite2-geo-whois-asn-country/geolite2-geo-whois-asn-country-ipv4.csv" ]
https://www.npmjs.com/package/@ip-location-db/asn
https://github.com/sapics/ip-location-db
2025-02-13T14:25:43Z INFO Downloading external resource (resource.download-external) details = Downloaded ASN/Geo data, url = "https://cdn.jsdelivr.net/npm/@ip-location-db/asn/asn-ipv4.csv", elapsed = 103479ms
2025-02-13T14:26:11Z INFO Downloading external resource (resource.download-external) details = Downloaded ASN/Geo data, url = "https://cdn.jsdelivr.net/npm/@ip-location-db/asn/asn-ipv6.csv", elapsed = 27811ms
2025-02-13T14:26:49Z INFO Downloading external resource (resource.download-external) details = Downloaded ASN/Geo data, url = "https://cdn.jsdelivr.net/npm/@ip-location-db/geolite2-geo-whois-asn-country/geolite2-geo-whois-asn-country-ipv4.csv", elapsed = 38568ms
国内部署
[asn]
type = "resource"
expires = "1d"
timeout = "5m"
max-size = 104857600
[asn.urls]
asn = [ "https://raw.gitcode.com/gh_mirrors/ip/ip-location-db/raw/main/asn/asn-ipv4.csv",
"https://raw.gitcode.com/gh_mirrors/ip/ip-location-db/raw/main/asn/asn-ipv6.csv" ]
geo = [ "https://raw.gitcode.com/gh_mirrors/ip/ip-location-db/raw/main/geolite2-geo-whois-asn-country/geolite2-geo-whois-asn-country-ipv4.csv",
"https://raw.gitcode.com/gh_mirrors/ip/ip-location-db/raw/main/geolite2-geo-whois-asn-country/geolite2-geo-whois-asn-country-ipv4.csv" ]
配置资源
[webadmin]
resource = /tmp/webadmin.zip

https://github.com/stalwartlabs/mail-server
https://stalw.art/