diff --git a/module.nix b/module.nix index 0f52cf2..18b14ef 100644 --- a/module.nix +++ b/module.nix @@ -95,17 +95,19 @@ in }; }; - services.postfix.config = { - smtp_sasl_auth_enable = "yes"; - smtp_sasl_security_options = ""; - smtp_sasl_password_maps = "texthash:/run/postfix/mastodon.cf"; - virtual_mailbox_maps = [ "hash:/run/postfix/mastodon.cf" ]; - }; + # services.postfix.config = { + # smtp_sasl_auth_enable = "yes"; + # smtp_sasl_security_options = ""; + # smtp_sasl_password_maps = "texthash:/run/postfix/mastodon.cf"; + # virtual_mailbox_maps = [ "hash:/run/postfix/mastodon.cf" ]; + # }; # mailserver.loginAccounts."noreply.mastodon@${sp.domain}" = { # mailserver.loginAccounts."mastodon@${sp.domain}" = { - # hashedPasswordFile = "/run/postfix/mastodon.cf"; - # sendOnly = true; - # }; + sp.email."noreply@${cfg.subdomain}.${sp.domain}" = { + hashedPasswordFile = "/run/postfix/mastodon.cf"; + systemTargets = [ "mastodon-email-password-setup.service" ]; + sendOnly = true; + }; systemd = { services.mastodon-email-password-setup = {