From 80c4c471d2b3e782312db0d524cbc24acd94ca5e Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Sun, 8 Feb 2026 22:36:54 -0600 Subject: sys/mta: set the SMTP bind address for the primary MX instance --- sys/mta/default.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/mta/default.nix') diff --git a/sys/mta/default.nix b/sys/mta/default.nix index 15476bf..004e2ae 100644 --- a/sys/mta/default.nix +++ b/sys/mta/default.nix @@ -47,7 +47,7 @@ in { type = types.port; }; - relayListen = mkOption { + mtaListen = mkOption { type = types.str; }; }; @@ -147,6 +147,7 @@ in { { mydomain = domain; myhostname = mtaDomain.main; + inet_interfaces = [cfg.mtaListen]; myorigin = "$mydomain"; #TODO: check_recipient_access para rechazar localhost desde afuera @@ -217,8 +218,6 @@ in { milter_default_action = "accept"; } // optionalAttrs isBackup { - inet_interfaces = [cfg.relayListen]; - smtpd_relay_restrictions = [ "reject_unauth_destination" ]; -- cgit v1.2.3