diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-03-04 20:24:16 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-03-09 13:44:34 +0100 |
commit | 7b9276c8055d23c124b9d962c7de2476987bd1c5 (patch) | |
tree | dcf65a264bafb75ae4a0ab61de4707559b1fbbf8 /modules/by-name/st/stalwart-mail | |
parent | modules/stalwart-mail: Set a default value for `principals` (diff) | |
download | nixos-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/st/stalwart-mail')
-rw-r--r-- | modules/by-name/st/stalwart-mail/settings.nix | 12 |
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" = { |