summary refs log tree commit diff stats
path: root/system
diff options
context:
space:
mode:
authorene <ene@sils.li>2023-03-18 16:27:54 +0100
committerene <ene@sils.li>2023-03-18 16:50:20 +0100
commitf77f8848301bd0eaf742f177771554f6ce942bb9 (patch)
treec06d92a995b6542c93dfb1affd76666bab7045f3 /system
parentChore(flake): Update (diff)
downloadnixos-server-f77f8848301bd0eaf742f177771554f6ce942bb9.tar.gz
nixos-server-f77f8848301bd0eaf742f177771554f6ce942bb9.zip
Fix(system/mail): Disable protocols with STARTTLS
This is inherently unsafe because it requires an unencrypted handshake.
Considering that all protocols also work directly with TLS i.e., the
encrypted variant, disabling this shouldn't be a drawback.
Diffstat (limited to '')
-rw-r--r--system/mail/default.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/system/mail/default.nix b/system/mail/default.nix
index b09f8f1..6fe82fd 100644
--- a/system/mail/default.nix
+++ b/system/mail/default.nix
@@ -4,6 +4,14 @@
   fqdn = "server1.vhack.eu";
   domains = ["vhack.eu"];
 
+  enableImap = false;
+  enableImapSsl = true;
+  enablePop3 = false;
+  enablePop3Ssl = true;
+  # SMTP
+  enableSubmission = false;
+  enableSubmissionSsl = true;
+
   mailDirectory = "/srv/mail/vmail";
   dkimKeyDirectory = "/srv/mail/dkim";
   backup.snapshotRoot = "/srv/mail/backup";