dotfiles/system/nixos/msmtp.nix
2023-06-24 20:19:50 +02:00

26 lines
509 B
Nix

{ pkgs, 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 = "${pkgs.coreutils}/bin/cat ${config.age.secrets.msmtp-password.path}";
set_from_header = true;
from = "tanker@mg.kempkens.io";
};
};
};
}