diff --git a/base/services/postfix.nix b/base/services/postfix.nix index f05fdc0..e721faf 100644 --- a/base/services/postfix.nix +++ b/base/services/postfix.nix @@ -6,18 +6,17 @@ in services.postfix = { enable = true; - hostname = "${config.networking.hostName}.pvv.ntnu.no"; - domain = "pvv.ntnu.no"; + settings.main = { + myhostname = "${config.networking.hostName}.pvv.ntnu.no"; + mydomain = "pvv.ntnu.no"; - relayHost = "smtp.pvv.ntnu.no"; - relayPort = 465; + # Nothing should be delivered to this machine + mydestination = [ ]; + + relayhost = [ "smtp.pvv.ntnu.no:465" ]; - config = { smtp_tls_wrappermode = "yes"; smtp_tls_security_level = "encrypt"; }; - - # Nothing should be delivered to this machine - destination = [ ]; }; -} \ No newline at end of file +}