diff options
author | Viktor Kleen <viktor@kleen.org> | 2017-11-05 09:42:40 -0800 |
---|---|---|
committer | Viktor Kleen <viktor@kleen.org> | 2020-11-23 23:46:06 +0000 |
commit | 6216c843ed79b5bc09a5f2cf522a0cfe7a21091b (patch) | |
tree | 110a113187ac6f30d082755505b18f3271eb2b41 /nixos/modules | |
parent | d1ca119619e7d2e51485325335ea0b1924ee4fe3 (diff) |
nixos/postfix: make postfix.enableSmtp work again
This fixes issue #104715.
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/services/mail/postfix.nix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/nixos/modules/services/mail/postfix.nix b/nixos/modules/services/mail/postfix.nix index fd4d16cdc37b0..319b3b638444f 100644 --- a/nixos/modules/services/mail/postfix.nix +++ b/nixos/modules/services/mail/postfix.nix @@ -834,12 +834,6 @@ in }; services.postfix.masterConfig = { - smtp_inet = { - name = "smtp"; - type = "inet"; - private = false; - command = "smtpd"; - }; pickup = { private = false; wakeup = 60; @@ -921,6 +915,12 @@ in in concatLists (mapAttrsToList mkKeyVal cfg.submissionOptions); }; } // optionalAttrs cfg.enableSmtp { + smtp_inet = { + name = "smtp"; + type = "inet"; + private = false; + command = "smtpd"; + }; smtp = {}; relay = { command = "smtp"; |