Enable gitea email notifications

This commit is contained in:
Zuckerberg 2023-04-09 22:05:23 -06:00
parent 154b37879b
commit 1065cc4b59
4 changed files with 20 additions and 4 deletions

View File

@ -32,12 +32,19 @@ in
};
mailer = {
ENABLED = true;
MAILER_TYPE = "sendmail";
FROM = "do-not-reply@neet.dev";
SENDMAIL_PATH = "/run/wrappers/bin/sendmail";
SENDMAIL_ARGS = "--";
MAILER_TYPE = "smtp";
SMTP_ADDR = "mail.neet.dev";
SMTP_PORT = "465";
IS_TLS_ENABLED = true;
USER = "robot@runyan.org";
FROM = "no-reply@neet.dev";
};
};
mailerPasswordFile = "/run/agenix/robots-email-pw";
};
age.secrets.robots-email-pw = {
file = ../../secrets/robots-email-pw.age;
owner = config.services.gitea.user;
};
# backups

View File

@ -37,6 +37,14 @@ in
# catchall for all domains
aliases = map (domain: "@${domain}") domains;
};
"robot@runyan.org" = {
aliases = [
"no-reply@neet.dev"
"robot@neet.dev"
];
sendOnly = true;
hashedPassword = "$2b$05$hkmwXGJSKuG/1.SmLecWSuzlq1F5pjp2ScoipQoVLR0ssSN5MgRs.";
};
};
rejectRecipients = [
"george@runyan.org"

BIN
secrets/robots-email-pw.age Normal file

Binary file not shown.

View File

@ -15,6 +15,7 @@ in
# email
"email-pw.age".publicKeys = all;
"sasl_relay_passwd.age".publicKeys = all;
"robots-email-pw.age".publicKeys = all;
# vpn
"iodine.age".publicKeys = all;