This commit is contained in:
2025-09-13 16:29:17 +03:00
parent a61b71c7c8
commit dddbf8b35f

View File

@@ -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 = {