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

@ -7,10 +7,7 @@ let
inherit (flake.config.machines.devices)
server
;
inherit (flake.config.services.instances)
forgejo
web
;
inherit (flake.config.services.instances) smtp forgejo web;
service = forgejo;
localhost = web.localhost.address0;
host = "${service.subdomain}.${web.domains.url3}";
@ -48,11 +45,11 @@ in
};
mailer = {
ENABLED = true;
SMTP_ADDR = "smtp.protonmail.ch";
SMTP_ADDR = smtp.hostname;
FROM = service.email.address0;
USER = service.email.address0;
PROTOCOL = "smtp+starttls";
SMTP_PORT = 587;
SMTP_PORT = smtp.ports.port0;
SEND_AS_PLAIN_TEXT = true;
USE_CLIENT_CERT = false;
};