From f4462c2c224c5072565701d8061df141e57d6338 Mon Sep 17 00:00:00 2001 From: twoneis Date: Sat, 22 Feb 2025 00:36:17 +0100 Subject: [PATCH] play around with email more, no real results --- devices/ellaca/options.nix | 2 +- modules/mail/default.nix | 29 +++++++++++++++++++++++++++-- 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/devices/ellaca/options.nix b/devices/ellaca/options.nix index a2b1745..3eae705 100644 --- a/devices/ellaca/options.nix +++ b/devices/ellaca/options.nix @@ -3,7 +3,7 @@ ssh.enable = true; nginx.enable = true; mail.enable = true; # broken - website.enable = true; # broken + website.enable = true; fedi.enable = false; # broken matrix.enable = true; git.enable = true; diff --git a/modules/mail/default.nix b/modules/mail/default.nix index 948f4d6..333e57c 100644 --- a/modules/mail/default.nix +++ b/modules/mail/default.nix @@ -40,6 +40,10 @@ in mkIf conf.mail.enable { protocol = "smtp"; bind = "[::]:465"; }; + smtp = { + protocol = "smtp"; + bind = "[::]:25"; + }; imaps = { protocol = "imap"; bind = "[::]:993"; @@ -64,8 +68,29 @@ in mkIf conf.mail.enable { cert = "%{file:/var/lib/acme/chpu.eu/cert.pem}%"; private-key = "%{file:/var/lib/acme/chpu.eu/key.pem}%"; }; - session.rcpt.directory = "'in-memory'"; - directory."imap".lookup.demains = [ "chpu.eu" ]; + storage = { + data = "db"; + fts = "db"; + block = "db"; + lookup = "db"; + directory = "internal"; + }; + directory."internal" = { + type = "internal"; + store = "db"; + }; + tracer."stdout" = { + type = "stdout"; + level = "info"; + ansi = false; + enable = true; + }; + session.rcpt = { + directory = "'internal'"; + }; + blocked-ip = { + "" = ""; + }; authentication.fallback-admin = { user = "admin"; secret = "%{file:/var/lib/stalwart-mail/secret/admin}%";