1
0
Fork 0
dotfiles/system/nixos/msmtp.nix

27 lines
481 B
Nix
Raw Normal View History

2023-06-23 18:08:22 +00:00
{ config, ... }:
{
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";
passwordeval = "cat ${config.age.secrets.msmtp-password.path}";
set_from_header = true;
from = "tanker@mg.kempkens.io";
};
};
};
}