mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
services/mail: TF state checks
This commit is contained in:
parent
a540a79171
commit
2421b83439
1 changed files with 2 additions and 2 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue