summaryrefslogtreecommitdiff
path: root/sys/mta
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2026-02-08 22:36:54 -0600
committerAlejandro Soto <alejandro@34project.org>2026-02-08 22:36:54 -0600
commit80c4c471d2b3e782312db0d524cbc24acd94ca5e (patch)
tree0c4183f2f2bb0e6261b84fbdfdec0d978b98197f /sys/mta
parent95b84e3a61cefd9e282d4485797b3dd7e7d6d276 (diff)
sys/mta: set the SMTP bind address for the primary MX instance
Diffstat (limited to '')
-rw-r--r--sys/mta/default.nix5
1 files changed, 2 insertions, 3 deletions
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"
];