Fixing mailer issues

This commit is contained in:
Lyes Saadi 2025-12-14 01:59:19 +01:00
parent c594f5fb51
commit 9b96f1e1e3
Signed by: lyes
GPG key ID: 55A1D803917CF39A
2 changed files with 15 additions and 4 deletions

View file

@ -12,6 +12,18 @@ in
settings.AcceptEnv = "GIT_PROTOCOL"; settings.AcceptEnv = "GIT_PROTOCOL";
}; };
# Fixing mailing issues
systemd.services.forgejo.serviceConfig = {
RestrictAddressFamilies = [
"AF_LOCAL"
"AF_NETLINK"
];
ReadWritePaths = [ "/var/spool/mail/" "/var/lib/postfix/queue/maildrop/" ];
NoNewPrivileges = lib.mkForce false;
PrivateUsers = lib.mkForce false;
SystemCallFilter = lib.mkForce [];
};
services.forgejo = { services.forgejo = {
enable = true; enable = true;
@ -52,9 +64,8 @@ in
mailer = { mailer = {
ENABLED = true; ENABLED = true;
PROTOCOL = "sendmail"; PROTOCOL = "sendmail";
# SMTP_ADDR = "taf.lyes.eu"; FROM = "root-biggoron@lyes.eu";
# FROM = "noreply@${srv.DOMAIN}"; SENDMAIL_PATH = "${config.security.wrapperDir}/sendmail";
# USER = "noreply@${srv.DOMAIN}";
}; };
# oauth2_client = { # oauth2_client = {

View file

@ -16,7 +16,7 @@
boot.swraid = { boot.swraid = {
enable = true; enable = true;
mdadmConf = '' mdadmConf = ''
MAILADDR root@lyes.eu MAILADDR root-mdadm@lyes.eu
DEVICE partitions DEVICE partitions
''; '';
}; };