feat: smtp test

This commit is contained in:
Nick 2025-02-02 21:16:28 -06:00
parent 468ecc909a
commit 2ede55a7ee
4 changed files with 14 additions and 24 deletions

View file

@ -9,10 +9,7 @@ let
inherit (flake.config.machines.devices)
server
;
inherit (flake.config.services.instances)
mastodon
web
;
inherit (flake.config.services.instances) smtp mastodon web;
service = mastodon;
host = "${mastodon.subdomain}.${web.domains.url3}";
localhost = web.localhost.address0;
@ -109,9 +106,9 @@ in
authenticate = true;
createLocally = false;
fromAddress = "upRootNutrition <${service.email.address0}>";
host = "smtp.protonmail.ch";
host = smtp.hostname;
passwordFile = config.sops.secrets.mastodon-smtp.path;
port = 587;
port = smtp.ports.port0;
user = service.email.address0;
};
};