Mox is a modern full-featured open source secure mail server for low-maintenance self-hosted email.
Excellent quality (open source) mail server software exists, but getting a working setup typically requires you configure half a dozen services (SMTP, IMAP, SPF/DKIM/DMARC, spam filtering), which are often written in C (where small bugs often have large consequences). That seems to lead to individuals no longer running their own mail servers, instead switching to one of the few centralized email providers. Email with SMTP is a long-time decentralized messaging protocol. To keep it decentralized, people need to run their own mail server. Mox aims to make that easy.
This is free and open source software.
Key Features
- Quick and easy to start/maintain mail server, for your own domain(s). Get a machine, download the mox binary, run the quickstart, add the printed DNS records, and you’ve got a working modern mail server.
- SMTP (with extensions) for receiving, submitting and delivering email.
- IMAP4 (with extensions) for giving email clients access to email.
- Webmail for reading/sending email from the browser.
- SPF/DKIM/DMARC for authenticating messages/delivery, also DMARC aggregate reports.
- Reputation tracking, learning (per user) host-, domain- and sender address-based reputation from (Non-)Junk email classification.
- Bayesian spam filtering that learns (per user) from (Non-)Junk email.
- Slowing down senders with no/low reputation or questionable email content (similar to greylisting). Rejected emails are stored in a mailbox called Rejects for a short period, helping with misclassified legitimate synchronous signup/login/transactional emails.
- Internationalized email, with unicode in email address usernames (“localparts”), and in domain names (IDNA).
- Automatic TLS with ACME, for use with Let’s Encrypt and other CA’s.
- DANE and MTA-STS for inbound and outbound delivery over SMTP with STARTTLS, including REQUIRETLS and with incoming/outgoing TLSRPT reporting.
- Web admin interface that helps you set up your domains, accounts and list aliases (instructions to create DNS records, configure SPF/DKIM/DMARC/TLSRPT/MTA-STS), for status information, and modifying the configuration file.
- Account autodiscovery (with SRV records, Microsoft-style, Thunderbird-style, and Apple device management profiles) for easy account setup (though client support is limited).
- Webserver with serving static files and forwarding requests (reverse proxy), so port 443 can also be used to serve websites.
- Simple HTTP/JSON API for sending transaction email and receiving delivery events and incoming messages (webapi and webhooks).
- Prometheus metrics and structured logging for operational insight.
- “mox localserve” subcommand for running mox locally for email-related testing/developing, including pedantic mode.
- Most non-server Go packages mox consists of are written to be reusable.
Website: www.xmox.nl
Support: GitHub Code Repository
Developer: Mechiel Lukkien
License: MIT License
mox is written in Go. Learn Go with our recommended free books and free tutorials.
Related Software
| Email Servers | |
|---|---|
| Exim | Highly configurable mail transfer agent |
| OpenSMTPD | Implementation of the server-side SMTP protocol with additional extensions |
| mox | Modern, secure, all-in-one email server |
| DBMail | Enables storing and retrieving mail messages from a database |
| WildDuck | Opinionated email server |
| Stalwart | All-in-one mail and collaboration server |
| Mailu | Self-hosted mail server stack |
| Mail-in-a-Box | Self-hosted email server solution |
| Postfix | Popular mail transfer agent |
| Maddy | Composable all-in-one mail server |
| Haraka | Modern SMTP server |
| Dovecot | Secure POP3 server that supports mbox and maildir mailboxes |
| Courier | Integrated mail/groupware server |
| Cyrus IMAP | Email, contacts and calendar server |
| Zimbra | Zimbra Collaboration Suite |
| Modoboa | Mail hosting and management platform |
| Citadel | Exchange-killer groupware server |
| chasquid | SMTP server with a focus on simplicity, security, and ease of operation |
| Sendmail | Mail transfer agent for sophisticated mail configurations |
| qmail | Written as a more secure replacement for the Sendmail program |
| dma | DragonFly Mail Agent |
| DavMail | POP/IMAP/SMTP/Caldav/Carddav/LDAP exchange gateway |
Read our verdict in the software roundup.
Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |

