postfix with gmail
This commit is contained in:
@@ -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 = "";
|
||||
|
||||
@@ -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} }";
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user