gitea: add working sendmail config

This commit is contained in:
Astro 2022-06-24 00:12:08 +02:00
parent 86f22a9bdd
commit 76c91e2179
1 changed files with 16 additions and 3 deletions

View File

@ -79,9 +79,9 @@
mailer = {
ENABLED = true;
FROM = "gitea@c3d2.de";
MAILER_TYPE = "smtp";
HOST = "mail.c3d2.de:465";
IS_TLS_ENABLED = true;
MAILER_TYPE = "sendmail";
SENDMAIL_PATH = "/run/wrappers/bin/sendmail";
SENDMAIL_ARGS = "--";
};
other = {
SHOW_FOOTER_VERSION = false;
@ -142,6 +142,19 @@
};
};
programs.msmtp = {
enable = true;
accounts.default = {
host = "mail.c3d2.de";
port = 587;
tls = true;
tls_starttls = true;
auth = false;
domain = "gitea.c3d2.de";
from = "mail@c3d2.de";
};
};
environment.systemPackages = with pkgs; [ postgresql unzip ]; # used to restore database dumps
system.stateVersion = "21.11";