initial commit

This commit is contained in:
Jet 2026-02-16 21:29:21 -08:00
commit 47c42dc7a6
14 changed files with 490 additions and 0 deletions

28
modules/mail.nix Normal file
View file

@ -0,0 +1,28 @@
{ config, pkgs, ... }:
{
services.stalwart = {
enable = true;
settings = {
server = {
hostname = "mail.extremist.software";
tls = {
enable = true;
implicit = false; # StartTLS usually on 587
};
};
# authentication.fallback-admin set in secrets.nix
# Stalwart configuration is quite extensive.
# By default it listens on standard ports (25, 465, 587, 993, 4190)
# and provides a web admin UI on 8080.
};
};
# Open Firewalls for Mail
networking.firewall.allowedTCPPorts = [
25 465 587 # SMTP
993 # IMAP (Secure)
4190 # Sieve
8080 # Admin UI (Reverse proxied, but good to double check loopback)
];
}