From dddbf8b35f68d133284607fa963fb9a790a9627d Mon Sep 17 00:00:00 2001 From: Thary Date: Sat, 13 Sep 2025 16:29:17 +0300 Subject: [PATCH] test --- module.nix | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) 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 = {