
Simple NixOS Mailserver
NixOS module for running a complete email server stack

Simple NixOS Mailserver is a set of NixOS modules that helps you declaratively run a complete mail server on NixOS. It aims to provide a reasonably secure, maintainable setup for hosting email domains with a reproducible Nix configuration.
Key Features
- Declarative NixOS configuration for end-to-end mail server deployment
- SMTP service with modern TLS and authentication options
- IMAP mail access for user mailboxes
- Spam filtering integration and common email hygiene features
- Email authentication support (DKIM, DMARC, SPF)
- Optional webmail support depending on chosen configuration
- Designed to fit naturally into NixOS system management and upgrades
Use Cases
- Self-hosting email for a personal domain on NixOS
- Running mail for small organizations that want reproducible infrastructure
- Homelab mail setups with strong control over configuration and updates
Limitations and Considerations
- Intended for NixOS; not a general-purpose mailserver installer for other distributions
- Deliverability depends on DNS correctness and IP reputation, which must be managed externally
Simple NixOS Mailserver is best suited to users who want an opinionated but flexible email stack managed entirely through NixOS. It provides building blocks for a complete mail system while keeping configuration reproducible and auditable.
Categories:
Tags:
Tech Stack:
Similar Services

docker-mailserver
Containerized mail server stack for SMTP and IMAP with anti-spam
Production-ready mail server stack in a Docker container with SMTP, IMAP/POP3, LDAP auth, anti-spam/AV, DKIM/DMARC, and optional OAuth2 support.

Postal
Open source mail delivery platform for inbound and outbound email
Postal is an open source mail delivery platform for sending and receiving email, with SMTP support, web-based management, and tools for running your own SendGrid-style se...


Mail-in-a-Box
Turnkey email server with webmail, DNS, TLS, and admin panel
Mail-in-a-Box is a one-click mail server appliance for Ubuntu, bundling SMTP/IMAP, webmail, DNS, TLS automation, backups, and an admin control panel.

mailcow: dockerized
Docker-based email server suite with a web admin interface
Mailcow is a dockerized mail server suite providing SMTP/IMAP, webmail, anti-spam/anti-virus, and domain/mailbox administration via a unified web UI.

Stalwart Mail Server
All-in-one mail and collaboration server for modern and legacy protocols
All-in-one open-source mail and collaboration server with SMTP, IMAP, JMAP, CalDAV, CardDAV, and WebDAV, plus integrated anti-spam and phishing protection.

Mailu
Docker-based mail server with webmail and admin interface
Mailu is a full-featured mail server distributed as Docker images, providing SMTP/IMAP/POP3, webmail, administration UI, and built-in security and anti-spam features.
systemd
Linux
Nix