From 19d81983a0babf9c95650866c4494dec97564306 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sat, 1 Sep 2018 20:01:18 -0500 Subject: [PATCH] gmail uses port 587 for STARTTLS https://support.google.com/mail/answer/7126229 --- modules/accounts/email.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/accounts/email.nix b/modules/accounts/email.nix index 660f6ad8..a6e265c4 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; }; })