From caba7f34202e08117729b38acd8ff82935096d45 Mon Sep 17 00:00:00 2001 From: twoneis Date: Tue, 18 Feb 2025 21:46:34 +0100 Subject: [PATCH] not more working but who knows --- modules/mail/default.nix | 35 +++-------------------------------- 1 file changed, 3 insertions(+), 32 deletions(-) diff --git a/modules/mail/default.nix b/modules/mail/default.nix index 8092169..948f4d6 100644 --- a/modules/mail/default.nix +++ b/modules/mail/default.nix @@ -13,7 +13,7 @@ in mkIf conf.mail.enable { "autodiscover.chpu.eu" "mail.chpu.eu" ]; - locations."/".proxyPass = "http://localhost:8080"; + locations."/".proxyPass = "http://localhost:9090"; }; }; }; @@ -51,7 +51,7 @@ in mkIf conf.mail.enable { }; management = { protocol = "http"; - bind = [ "127.0.0.1:8080" ]; + bind = [ "127.0.0.1:9090" ]; }; }; }; @@ -64,37 +64,8 @@ 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.auth = { - mechanism = "[plain, login]"; - directory = "'default'"; - must-match-sender = false; - }; - store = { - rocksdb = { - type = "rocksdb"; - path = "/opt/stalwart/data"; - }; - }; - storage = { - data = "rocksdb"; - directory = "default"; - lookup = "rocksdb"; - }; - session.rcpt.directory = "'default'"; + session.rcpt.directory = "'in-memory'"; directory."imap".lookup.demains = [ "chpu.eu" ]; - directory."default" = { - type = "internal"; - store = "rocksdb"; - principals = [ - { - class = "individual"; - name = "mira@chpu.eu"; - description = "Mira Chacku Purakal"; - secret = "%{file:/var/lib/stalwart-mail/secret/mira}%"; - emails = [ "mira@chpu.eu" ]; - } - ]; - }; authentication.fallback-admin = { user = "admin"; secret = "%{file:/var/lib/stalwart-mail/secret/admin}%";