Simple NixOS Mailserver logo

Simple NixOS Mailserver

  •  0 ratings
In category: Communication / Email / Complete Solutions

About Simple NixOS Mailserver

Complete mailserver solution leveraging the Nix Ecosystem.

  •   469  
  •   0  
  •   0  
  •   0  
Github stats:
  •  Commits: 544  
  •   189  
  •   N/A  
  •  Latest commit: Dec 22, 2022  

Deploy this app to Linode with a free $100 credit!

Languages/Platforms/Technologies:
Lincenses:

More about Simple NixOS Mailserver

Simple Nixos MailServer

license pipeline status

Release branches

For each NixOS release, we publish a branch. You then have to use the SNM branch corresponding to your NixOS version.

Subscribe to SNM Announcement List This is a very low volume list where new releases of SNM are announced, so you can stay up to date with bug fixes and updates. All announcements are signed by the gpg key with fingerprint

D9FE 4119 F082 6F15 93BD  BD36 6162 DBA5 635E A16A

Features

v2.0

  • [x] Continous Integration Testing
  • [x] Multiple Domains
  • Postfix MTA
    • [x] smtp on port 25
    • [x] submission tls on port 465
    • [x] submission starttls on port 587
    • [x] lmtp with dovecot
  • Dovecot
    • [x] maildir folders
    • [x] imap with tls on port 993
    • [x] pop3 with tls on port 995
    • [x] imap with starttls on port 143
    • [x] pop3 with starttls on port 110
  • Certificates
    • [x] manual certificates
    • [x] on the fly creation
    • [x] Let's Encrypt
  • Spam Filtering
    • [x] via rspamd
  • Virus Scanning
    • [x] via clamav
  • DKIM Signing
    • [x] via opendkim
  • User Management
    • [x] declarative user management
    • [x] declarative password management
  • Sieves
    • [x] A simple standard script that moves spam
    • [x] Allow user defined sieve scripts
    • [x] ManageSieve support
  • User Aliases
    • [x] Regular aliases
    • [x] Catch all aliases

In the future

  • DKIM Signing
    • [ ] Allow a per domain selector

Get in touch

  • Subscribe to the mailing list
  • Join the Libera Chat IRC channel #nixos-mailserver

Quick Start

   { config, pkgs, ... }:
   let release = "nixos-21.11";
   in {
     imports = [
       (builtins.fetchTarball {
         url = "https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/archive/${release}/nixos-mailserver-${release}.tar.gz";
         # This hash needs to be updated
         sha256 = "0000000000000000000000000000000000000000000000000000";
       })
     ];

     mailserver = {
       enable = true;
       fqdn = "mail.example.com";
       domains = [ "example.com" "example2.com" ];
       loginAccounts = {
           "user1@example.com" = {
               # nix-shell -p mkpasswd --run 'mkpasswd -sm bcrypt' > /hashed/password/file/location
               hashedPasswordFile = "/hashed/password/file/location";

               aliases = [
                   "info@example.com"
                   "postmaster@example.com"
                   "postmaster@example2.com"
               ];
           };
       };
     };
   }

For a complete list of options, see default.nix.

How to Set Up a 10/10 Mail Server Guide

Check out the Complete Setup Guide in the project's documentation.

How to Backup

Checkout the Complete Backup Guide. Backups are easy with SNM.

Development

See the How to Develop SNM wiki page.

Release notes

nixos-20.03

  • Rspamd is upgraded to 2.0 which deprecates the SQLite Bayes backend. We then moved to the Redis backend (the default since Rspamd 2.0). If you don't want to relearn the Redis backend from the scratch, we could manually run

    rspamadm statconvert --spam-db /var/lib/rspamd/bayes.spam.sqlite --ham-db /var/lib/rspamd/bayes.ham.sqlite -h 127.0.0.1:6379 --symbol-ham BAYES_HAM --symbol-spam BAYES_SPAM

See the Rspamd migration notes and this SNM Merge Request for details.

Contributors

See the contributor tab

Alternative Implementations

Credits

Comments (0)

Please login to join the discussion on this project.

Simple NixOS Mailserver Reviews (0)

Overall Rating

None

based on 0 ratings

Please login to review this project.

No reviews for this project yet.

↑ back to top

Linux VPS from $11/yr.
RackNerd VPS for $11.38/mo

Popular Projects

FluxBB

in Social Networks and Forums
 31k    0    0    0  

Nextcloud

in File Transfer & Synchronization
 18k    1    1    0  

Libreddit

in Social Networks and Forums
 6k    0    1    0  

CasaOS

in Self-hosting Solutions
 5k    0    0    0  

Audiobookshelf

in Audio Streaming
 4k    0    1    0  

Mediagoblin

in Photo and Video Galleries
 4k    0    0    0  

Dashboard

in Personal Dashboards
 3k    0    0    0  

Most Discussed

Nextcloud

in File Transfer & Synchronization
 18k    1    1    0  

Tube Archivist

in Automation
 3k    0    1    0  

OneDev

in Project Management
 2k    0    0    0  

iodine

in Proxy
 2k    0    0    0  

Alf.io

in Booking and Scheduling
 2k    0    0    0  

sysPass

in Password Managers
 886    0    0    0  

Misskey

in Social Networks and Forums
 2k    0    0    0  
pCloud Lifetime

Top Rated Projects

Gitea

 1 rating
in Project Management

Bagisto

 1 rating
in E-commerce

LinkAce

 1 rating
in Bookmarks and Link Sharing

Pydio

 1 rating
in File Transfer & Synchronization

Audiobookshelf

 1 rating
in Audio Streaming

Nextcloud

 1 rating
in File Transfer & Synchronization

Seafile

 1 rating
in File Transfer & Synchronization

Categories

You May Also Be Interested In

Modoboa logo
Modoboa cover

Modoboa

Modoboa is a mail hosting and management platform including…

Inboxen logo
Inboxen cover

Inboxen

Inboxen is a service that provides you with an infinite num…

iRedMail logo
iRedMail cover

iRedMail

Full-featured mail server solution based on Postfix and Dov…