A self-hosted mail server packaged as a set of Docker images, covering SMTP, IMAP, POP3 and webmail.
- Stars
- 6,123
- Forks
- 345
- Open issues
- 120
- Last commit
- yesterday
What is it?
maddy is a mail server that covers the whole email stack in a single daemon: it sends messages over SMTP as an MTA, accepts incoming mail over SMTP as an MX, and stores messages that users can read via IMAP.
It also implements the supporting protocols needed to keep email reasonably secure, including DKIM, SPF, DMARC, DANE and MTA-STS. The project positions itself as a replacement for Postfix, Dovecot, OpenDKIM, OpenSPF and OpenDMARC, configured through one uniform config file.
The IMAP storage component is marked as beta, so teams wanting a mature feature-complete IMAP server may prefer Dovecot, while maddy can still handle delivery.
Key features
- 01Sends and receives mail over SMTP, acting as both MTA and MX.
- 02Stores messages and provides access through IMAP.
- 03Implements DKIM, SPF, DMARC, DANE and MTA-STS authentication.
- 04Runs as a single daemon with one uniform configuration file.
Use cases
- Hosting a self-managed mail server for a domain without running multiple separate mail components.
- Replacing a Postfix plus Dovecot plus OpenDKIM stack with one binary to reduce maintenance.
- Handling outbound and inbound delivery while using another IMAP server for mailbox access.
Quick start
- 1
Read the setup tutorial on the project site
- 2
Open the documentation for installation details
Things to know
- IMAP storage is marked as beta; Dovecot is suggested for a more stable option.
- Setup requires running a full mail server, including DNS and TLS configuration.
Topics
FAQ
- What is maddy?
- All-in-one mail server in Go that handles SMTP sending and receiving, IMAP storage, and DKIM/SPF/DMARC authentication in one daemon. maddy is a mail server that covers the whole email stack in a single daemon: it sends messages over SMTP as an MTA, accepts incoming mail over SMTP as an MX, and stores messages that users can read via IMAP.
- Is maddy free to use? What license does it have?
- maddy is open source under the GPL-3.0 license. Check the license terms before using it in commercial products.
- Is maddy still maintained?
- Actively maintained. The last commit to maddy was on Nov 5, 2026.
- What can I use maddy for?
- Hosting a self-managed mail server for a domain without running multiple separate mail components. Replacing a Postfix plus Dovecot plus OpenDKIM stack with one binary to reduce maintenance. Handling outbound and inbound delivery while using another IMAP server for mailbox access.
- How do I install maddy?
- Read the setup tutorial on the project site Open the documentation for installation details
- Where can I get maddy?
- The source code and installation instructions are on GitHub: https://github.com/foxcpp/maddy
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
Dovecot is an open-source IMAP and POP3 mail server that gives users access to mail stored on a server.
A single-file, self-hosted private email server with SMTP, POP3 and IMAP support plus a web mail management interface for your own domain.
Self-hostable all-in-one mail and collaboration server in Rust, supporting IMAP, JMAP, POP3, SMTP, CalDAV, CardDAV and WebDAV.
A highly scalable, event-driven SMTP mail server in Node.js whose behaviour is extended through a plugin system.
A full-featured, secure mail server in Go for self-hosting your own domain's email with low maintenance.