2026-08-03 16:16:20 +08:00
# NewSzxcn Email
2026-08-02 06:03:59 +08:00
2026-08-03 16:16:20 +08:00
NewSzxcn Email is a self-hosted mail server with a complete Webmail client and administration console. It bundles Go, React, Postfix, Dovecot, Rspamd, and SQLite into an all-in-one Docker deployment.
2026-08-02 06:03:59 +08:00
2026-08-03 16:16:20 +08:00
[Releases ](https://github.com/zxyszx/NewSzxcn-Email/releases ) · [Chinese README ](README.md )
2026-08-02 06:03:59 +08:00
## Features
2026-08-03 16:16:20 +08:00
- Webmail with compose, drafts, attachments, search, labels, folders, reminders, import, and export
- Multiple domains and mailboxes, DKIM, DNS checks, verified forwarding, and external IMAP
- Incoming mail rules with conditions, ordering, forwarding, moving, and bulk application
- Administration for users, permission quotas, domains, mailboxes, messages, and send queues
- SMTP, IMAP, POP3, Postfix, Dovecot, Rspamd, and SMTP Submission
- Release checks, admin-only web updates, pre-update database backups, and CLI rollback
2026-08-02 06:03:59 +08:00
2026-08-03 16:16:20 +08:00
## One-command install
2026-08-02 06:03:59 +08:00
2026-08-03 16:16:20 +08:00
Debian and Ubuntu on `amd64` or `arm64` are supported.
2026-08-02 17:40:38 +08:00
2026-08-03 16:16:20 +08:00
```bash
curl -fsSL https://raw.githubusercontent.com/zxyszx/NewSzxcn-Email/main/install.sh | sudo bash
```
2026-08-02 06:03:59 +08:00
2026-08-03 16:16:20 +08:00
The installer configures `/opt/newszxcn-email` , starts the Docker services, and waits for the health check. DNS records and provider port restrictions must still be configured by the operator.
2026-08-02 06:03:59 +08:00
2026-08-03 16:16:20 +08:00
## Update
2026-08-02 06:03:59 +08:00
2026-08-03 16:16:20 +08:00
System administrators can click the version badge in the admin sidebar to review and install a GitHub release. The updater is only reachable on the internal Docker network.
CLI update and rollback:
2026-08-02 06:03:59 +08:00
```bash
2026-08-03 16:16:20 +08:00
sudo newszxcn-email update
sudo newszxcn-email rollback
2026-08-02 06:03:59 +08:00
```
2026-08-03 16:16:20 +08:00
Useful commands:
```bash
sudo newszxcn-email status
sudo newszxcn-email logs
sudo newszxcn-email uninstall
```
2026-08-02 06:03:59 +08:00
2026-08-03 16:16:20 +08:00
The uninstall command preserves configuration, messages, and the database under `/opt/newszxcn-email` .
2026-08-02 06:03:59 +08:00
2026-08-03 16:16:20 +08:00
## Required ports
Open TCP ports `25` , `80` , `443` , `465` , `587` , `993` , and `995` as needed. Public delivery also requires correct MX, SPF, DKIM, and DMARC records.
## Manual source deployment
```bash
git clone https://github.com/zxyszx/NewSzxcn-Email.git
cd NewSzxcn-Email/deploy
cp .env.example .env
docker compose -f docker-compose.yml -f docker-compose.build.yml up -d --build
```
2026-08-02 06:03:59 +08:00
## License
2026-08-03 16:16:20 +08:00
[MIT ](LICENSE )