# Simple NixOS Mailserver

Simple NixOS Mailserver is a self-hosted communication app. Self-hosted mail server package for NixOS that configures SMTP, IMAP, DNS, and anti-spam services through the NixOS module system for a complete, easily maintainable mail setup.

Canonical page: https://ourlocalhost.com/app/8758/simple-nixos-mailserver

## Description

Self-hosted mail server package for NixOS that configures SMTP, IMAP, DNS, and anti-spam services through the NixOS module system for a complete, easily maintainable mail setup.

## Platform availability

Available on 1 of 10 platforms: Any server.

## Health score

14/100 (Low), based on 4 of 4 factors.
- Maintained: 0 (last commit 955 days ago)
- Popular: 6 (1 GitHub stars)
- Easy to install: 25 (1 install platform, install notes)
- Light to run: 50 (2 GB minimum RAM)

## Links

- GitHub: https://github.com/GoldsteinE/simple-nixos-mailserver
- Documentation: https://nixos-mailserver.readthedocs.io/en/latest/

## Common questions

### Which SNM branch should I use for my NixOS version?

Use the SNM release branch that matches your NixOS version, such as nixos-23.11 for NixOS 23.11. For NixOS unstable, use the master branch.

### Which mail ports does the server provide?

It supports SMTP on port 25, TLS submission on 465, STARTTLS submission on 587, IMAP TLS on 993, IMAP STARTTLS on 143, POP3 TLS on 995, and POP3 STARTTLS on 110.

### What if my VPS blocks outgoing port 25?

One approach discussed for this setup is to route outgoing SMTP traffic through a WireGuard VPN so it can reach an upstream mail destination.

### Can it be used to migrate an existing mail server to NixOS?

A NixOS help thread discusses using it as a starting point for migrating a mail server. It also notes that declaratively configuring multiple users and passwords can be difficult.

### How can I tune rspamd spam filtering?

The documentation describes tuning via auto-learning, training from existing folders, symbol weights, and action thresholds. It also covers accessing the rspamd web UI using SSH forwarding or an nginx reverse proxy.

### Can the server use Let's Encrypt for TLS?

Yes. It supports manual certificates, on-the-fly certificate creation, and Let's Encrypt.

## Alternatives

- Axigen: Axigen provides a multi-tenant, fully integrated, multi-platform, all-in-one email, calendaring and collaboration messaging solution.
- MailEnable
- WildDuck: WildDuck is a scalable no-SPOF IMAP/POP3 mail server.
- b1gMail
- mailu: Mailu is a simple yet full-featured mail server as a set of Docker images.
- smartermail: SmarterMail is the Microsoft Exchange alternative, offering the only other email, groupware, and collaboration server on the market with na…

---
Source: Our Local Host (https://ourlocalhost.com/app/8758/simple-nixos-mailserver), the self-hosted and open-source app directory.
