fix postfix hopefully

This commit is contained in:
2026-01-28 14:10:10 -06:00
parent f251a6f5c7
commit 85255adb2c

View File

@@ -61,9 +61,8 @@ in {
services.postfix = { services.postfix = {
enable = true; enable = true;
settings.main = { settings.main = {
relayHost = ["smtp.gmail.com:${toString cfg.port}"]; relayhost = ["smtp.gmail.com:${toString cfg.port}"];
smtp_use_tls = "yes"; smtp_tls_security_level = "may";
smtp_tls_security_level = "encrypt";
smtp_sasl_auth_enable = "yes"; smtp_sasl_auth_enable = "yes";
smtp_sasl_security_options = "noanonymous"; smtp_sasl_security_options = "noanonymous";
smtp_sasl_password_maps = "texthash:${config.sops.secrets."postfix_passwd".path}"; smtp_sasl_password_maps = "texthash:${config.sops.secrets."postfix_passwd".path}";