fix(mail.nix): update virtual alias mappings for root/admin

Adjusted the virtual_alias_maps to properly include both root and admin email forwarding. Removed unused rootAlias line and ensured the configuration aligns with intended email routing behavior.
This commit is contained in:
Harald Hoyer 2025-05-21 09:41:36 +02:00
parent 0a4b80c860
commit 2e28118edf

View file

@ -9,16 +9,13 @@
enable = true;
relayHost = "smtp.gmail.com";
relayPort = 587;
#rootAlias = "harald.hoyer@gmail.com";
extraAliases = "admin: root";
config = {
smtp_use_tls = "yes";
smtp_sasl_auth_enable = "yes";
smtp_sasl_security_options = "";
smtp_sasl_password_maps = "texthash:${config.sops.secrets.sasl_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=harald.hoyer@gmail.com} }";
virtual_alias_maps = "inline:{ root=harald.hoyer@gmail.com, admin=harald.hoyer@gmail.com }";
};
};