mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 18:15:13 -05:00
feat: smtp test
This commit is contained in:
parent
468ecc909a
commit
2ede55a7ee
4 changed files with 14 additions and 24 deletions
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -11,6 +11,7 @@ let
|
|||
inherit (flake.config.services.instances)
|
||||
caddy
|
||||
peertube
|
||||
smtp
|
||||
web
|
||||
;
|
||||
service = peertube;
|
||||
|
@ -55,8 +56,8 @@ in
|
|||
transport = "smtp";
|
||||
disable_starttls = false;
|
||||
from_address = service.email.address0;
|
||||
hostname = "smtp.protonmail.ch";
|
||||
port = 587;
|
||||
hostname = smtp.hostname;
|
||||
port = smtp.ports.port0;
|
||||
username = service.email.address0;
|
||||
tls = false;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue