about summary refs log tree commit diff stats
path: root/modules/by-name
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-03-04 20:24:16 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-03-09 13:44:34 +0100
commit7b9276c8055d23c124b9d962c7de2476987bd1c5 (patch)
treedcf65a264bafb75ae4a0ab61de4707559b1fbbf8 /modules/by-name
parentmodules/stalwart-mail: Set a default value for `principals` (diff)
downloadnixos-server-7b9276c8055d23c124b9d962c7de2476987bd1c5.zip
modules/stalwart-mail: Also listen on :25 without SSL but with STARTTLS
This is important, so that other MTA can send us mail.
Diffstat (limited to 'modules/by-name')
-rw-r--r--modules/by-name/st/stalwart-mail/settings.nix12
1 files changed, 11 insertions, 1 deletions
diff --git a/modules/by-name/st/stalwart-mail/settings.nix b/modules/by-name/st/stalwart-mail/settings.nix
index 8619c98..4eee179 100644
--- a/modules/by-name/st/stalwart-mail/settings.nix
+++ b/modules/by-name/st/stalwart-mail/settings.nix
@@ -348,12 +348,22 @@ in {
           protocol = "imap";
           tls.implicit = true;
         };
+
         # SMTP
-        "smtp" = {
+        "submissions" = {
           bind = ["[::]:465"];
           protocol = "smtp";
           tls.implicit = true;
         };
+        "input" = {
+          bind = ["[::]:25"];
+          protocol = "smtp";
+          tls = {
+            enable = true;
+            # Require an explicit `STARTTLS`
+            implicit = false;
+          };
+        };
 
         # # POP3 (should be disabled, unless there is a real reason to use it)
         # "pop3" = {