Maddy

From NixOS Wiki
Revision as of 18:03, 2 August 2022 by imported>Onny (Initial example setup Maddy mail server)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Maddy is a composable, modern mail server written in Go. It includes everything required to manage users, inboxes, send and receive mails while supporting all important secure protocols and standards.

Installation

Note: Following example describes the usage of an experimental module which is still being reviewed as an open PR and might not be ready for production.

The following example enables the Maddy mail server listening on mail delivery SMTP/Submission ports (25, 587) and IMAP/IMAPS ports (143/993) for mail clients to connect to.

/etc/nixos/configuration.nix
services.maddy = {
  enable = true;
  openFirewall = true;
  tls = {
    certPath = /tmp/example.org.crt;
    keyPath = /tmp/example.org.key;
  };
  imap = {
    port = 143;
    tlsEnable = true;
    tlsPort = 993;
  };
};
services.rspamd.enable = true;

Configuration