2023-06-24 18:19:50 +00:00
|
|
|
{ pkgs, config, ... }:
|
2023-06-23 18:08:22 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
programs.msmtp = {
|
|
|
|
enable = true;
|
|
|
|
setSendmail = true;
|
|
|
|
|
|
|
|
defaults = {
|
|
|
|
tls = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
accounts = {
|
|
|
|
default = {
|
|
|
|
auth = true;
|
|
|
|
host = "smtp.mailgun.org";
|
|
|
|
port = 465;
|
|
|
|
tls_starttls = false;
|
|
|
|
user = "postmaster@mg.kempkens.io";
|
2023-06-24 18:19:50 +00:00
|
|
|
passwordeval = "${pkgs.coreutils}/bin/cat ${config.age.secrets.msmtp-password.path}";
|
2023-06-23 18:08:22 +00:00
|
|
|
|
|
|
|
set_from_header = true;
|
|
|
|
from = "tanker@mg.kempkens.io";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|