From 1a5c2ac496cf95eda4996b229cc55898c0283507 Mon Sep 17 00:00:00 2001 From: Christine Elisabeth Koppel Date: Mon, 16 Feb 2026 12:16:15 +0100 Subject: [PATCH] Change SMTP listener to bind on port 587 instead of 25... to circumvent the block. --- nix-system-configs/modules/system/mail-server.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nix-system-configs/modules/system/mail-server.nix b/nix-system-configs/modules/system/mail-server.nix index b482176..82f4f6a 100644 --- a/nix-system-configs/modules/system/mail-server.nix +++ b/nix-system-configs/modules/system/mail-server.nix @@ -88,7 +88,9 @@ in { listener = { smtp = { protocol = "smtp"; - bind = "[::]:25"; + # Use port 587 for SMTP submission with STARTTLS, as port 25 is often blocked by ISPs for outgoing mail to prevent spam. + # This way, you can still receive mail on port 25 but require authenticated submission on port 587. + bind = "[::]:587"; # I am so fucking fed up this shit, this fucking ISP is sending me to early grave. }; submissions = { bind = "[::]:465";