nixos-config/services/mail.nix

32 lines
571 B
Nix
Raw Normal View History

2023-12-08 21:58:09 +01:00
{ config, ... }:
{
2023-12-08 21:58:09 +01:00
age.secrets.smtp = {
file = ../secrets/smtp.age;
group = "smtp";
mode = "440";
};
programs.msmtp = {
enable = true;
defaults = {
tls = true;
tls_starttls = true;
auth = true;
};
accounts.default = {
tls = true;
tls_starttls = true;
host = "in-v3.mailjet.com";
port = 587;
user = "8f445e9664e3668e7c859bfcf189e71e";
2022-05-04 03:02:47 +02:00
passwordeval = "cat ${config.age.secrets.smtp.path}";
from = "admin@felschr.com";
};
};
2023-12-08 21:58:09 +01:00
2024-05-26 16:45:38 +02:00
users.groups.smtp = {
gid = 983;
};
}