diff --git a/modules/accounts/email.nix b/modules/accounts/email.nix index 660f6ad86..a6e265c40 100644 --- a/modules/accounts/email.nix +++ b/modules/accounts/email.nix @@ -269,7 +269,7 @@ let smtp = { host = "smtp.gmail.com"; - port = 587; + port = if config.smtp.tls.useStartTls then 587 else 465; }; })