postfix with gmail

This commit is contained in:
2025-10-19 14:33:36 -05:00
parent f463b76253
commit ae04500e63
3 changed files with 8 additions and 8 deletions

View File

@@ -60,9 +60,10 @@ in {
# enable the ${service} service
services.postfix = {
enable = true;
relayHost = "smtp.mail.me.com";
relayHost = "smtp.gmail.com";
relayPort = cfg.port;
config = {
#smtp_use_tls = "yes";
smtp_tls_security_level = "may";
smtp_sasl_auth_enable = "yes";
smtp_sasl_security_options = "";

View File

@@ -60,17 +60,16 @@ in {
# enable the ${service} service
services.postfix = {
enable = true;
relayHost = "smtp.gmail.com";
relayHost = "smtp.mail.me.com";
relayPort = cfg.port;
config = {
#smtp_use_tls = "yes";
smtp_tls_security_level = "may";
smtp_sasl_auth_enable = "yes";
smtp_sasl_security_options = "";
smtp_sasl_password_maps = "texthash:${config.sops.secrets."postfix_passwd".path}";
# optional: Forward mails to root (e.g. from cron jobs, smartd)
# to me privately and to my work email:
virtual_alias_maps = "inline:{ {root=me@blakedheld.xyz, throwedspam@gmail.com} }";
virtual_alias_maps = "inline:{ {root=me@blakedheld.xyz} }";
};
};