Files
NewSzxcn-Email/README.en.md
T

67 lines
2.6 KiB
Markdown
Raw Normal View History

# NewSzxcn Email
2026-08-02 06:03:59 +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-14 06:08:44 +08:00
[Releases](https://gitea.xzys.me/szx/NewSzxcn-Email/releases) · [Chinese README](README.md)
2026-08-02 06:03:59 +08:00
## Features
- 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
## One-command install
2026-08-02 06:03:59 +08:00
Debian and Ubuntu on `amd64` or `arm64` are supported.
2026-08-02 17:40:38 +08:00
```bash
2026-08-14 06:08:44 +08:00
curl -fsSL https://gitea.xzys.me/szx/NewSzxcn-Email/raw/branch/main/install.sh | sudo bash
```
2026-08-02 06:03:59 +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 22:39:51 +08:00
During first installation it prompts for the firewall policy, mail hostname, administrator username/password, and Web mode. Automatic mode configures host Nginx and obtains a Let's Encrypt certificate with the official `acme.sh` client. The default username is `admin`; an empty password generates 12 characters, while a custom password requires at least 6 characters.
## Update
2026-08-02 06:03:59 +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
sudo newszxcn-email update
sudo newszxcn-email rollback
2026-08-02 06:03:59 +08:00
```
Useful commands:
```bash
sudo newszxcn-email status
sudo newszxcn-email logs
2026-08-03 22:39:51 +08:00
sudo newszxcn-email restart
sudo newszxcn-email certificate
sudo newszxcn-email uninstall
```
2026-08-02 06:03:59 +08:00
2026-08-03 22:39:51 +08:00
The uninstall command removes the containers and generated Nginx configuration while preserving certificates, configuration, messages, and the database under `/opt/newszxcn-email`.
2026-08-02 06:03:59 +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
2026-08-14 06:08:44 +08:00
git clone https://gitea.xzys.me/szx/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
[MIT](LICENSE)