You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Robin Raymond 8b23f70036 add logo 3 years ago
logo add logo 3 years ago
mail-server include junk sieve script 3 years ago
nixops flesh out nixops file a little 3 years ago
tests add user password test 3 years ago
LICENSE Initial commit 4 years ago add logo 3 years ago
default.nix add commit from Infinisil that got lost in the merge 3 years ago

Simple Nixos MailServer


Stable Releases

None so far.



  • Postfix MTA
  • Dovecot
  • Certificates
  • Spam Filtering
  • Virus Scanning
  • DKIM Signing
  • User Management


  • Certificates
  • Sieves
  • User Aliases



v1.0 -> v1.1

  • Changed structure to Nix Modules
  • Adds Sieve support

How to Test

You can test the setup via nixops. After installation, do

nixops create nixops/single-server.nix nixops/vbox.nix -d mail
nixops deploy -d mail
nixops info -d mail

You can then test the server via e.g. telnet. To log into it, use

nixops ssh -d mail mailserver

To test imap manually use

openssl s_client -host -port 143 -starttls imap

A Complete Mail Server Without Moving Parts

Used Technologies

  • Nixos
  • Nixpkgs
  • Dovecot
  • Postfix
  • Rmilter
  • Rspamd
  • Clamav
  • Opendkim
  • Pam


  • one domain
  • unlimited mail accounts
  • unlimited aliases for every mail account
  • spam and virus checking
  • dkim signing of outgoing emails
  • imap (optionally pop3)
  • startTLS


  • moving parts
  • SQL databases
  • configurations that need to be made after nixos-rebuild switch
  • complicated storage schemes
  • webclients / http-servers