From f027fc10c626ddef476e5545a3286939a8391af4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Sat, 11 May 2024 18:32:05 -0300 Subject: [PATCH] mastodon: configure noreply email --- hosts/phantom/email.nix | 3 +++ hosts/phantom/mastodon.nix | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/hosts/phantom/email.nix b/hosts/phantom/email.nix index 6c637be..b431807 100644 --- a/hosts/phantom/email.nix +++ b/hosts/phantom/email.nix @@ -31,6 +31,9 @@ "noreply@git.lelgenio.com" = { hashedPassword = "$2b$05$TmR1R7ZwXfec7yrOfeBL7u3ZtyXf0up5dEO6uMWSvb/O7LPEm.j0."; }; + "noreply@social.lelgenio.com" = { + hashedPassword = "$2b$05$TmR1R7ZwXfec7yrOfeBL7u3ZtyXf0up5dEO6uMWSvb/O7LPEm.j0."; + }; }; }; diff --git a/hosts/phantom/mastodon.nix b/hosts/phantom/mastodon.nix index 3deaee5..cf85b07 100644 --- a/hosts/phantom/mastodon.nix +++ b/hosts/phantom/mastodon.nix @@ -3,7 +3,13 @@ enable = true; configureNginx = true; localDomain = "social.lelgenio.com"; - smtp.fromAddress = "lelgenio@disroot.org"; + smtp = { + authenticate = true; + host = "lelgenio.com"; + fromAddress = "noreply@social.lelgenio.com"; + user = "noreply@social.lelgenio.com"; + passwordFile = config.age.secrets.phantom-forgejo-mailer-password.path; + }; streamingProcesses = 2; extraConfig.SINGLE_USER_MODE = "true"; mediaAutoRemove.olderThanDays = 10;