From 2421b8343997d91eea624994eed89140c85533f2 Mon Sep 17 00:00:00 2001 From: kat witch Date: Sat, 11 Sep 2021 00:53:49 +0100 Subject: [PATCH] services/mail: TF state checks --- config/services/mail/postfix.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/services/mail/postfix.nix b/config/services/mail/postfix.nix index dda3150b..c026feb8 100644 --- a/config/services/mail/postfix.nix +++ b/config/services/mail/postfix.nix @@ -99,8 +99,8 @@ in { mapFiles."helo_access" = helo_access; extraConfig = '' - smtp_bind_address = ${if tf.state.enable then tf.resources.${config.networking.hostName}.getAttr "private_ip" else config.network.addresses.public.nixos.ipv4.selfaddress} - smtp_bind_address6 = ${config.network.addresses.public.nixos.ipv6.selfaddress} + smtp_bind_address = ${if tf.state.enable then tf.resources.${config.networking.hostName}.getAttr "private_ip" else ""} + smtp_bind_address6 = ${if tf.state.enable then config.network.addresses.public.nixos.ipv6.selfaddress else ""} mailbox_transport = lmtp:unix:private/dovecot-lmtp masquerade_domains = ldap:${config.secrets.files.domains-ldap.path} virtual_mailbox_domains = ldap:${config.secrets.files.domains-ldap.path}