aboutsummaryrefslogtreecommitdiff
path: root/nixos/msmtp.nix
blob: f5b272d29d4861e67ea56873724cd2bd1db45f3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
  pkgs,
  config,
  ...
}: {
  programs.msmtp = {
    enable = true;
    accounts = {
      default = {
        auth = true;
        tls = true;
        # try setting `tls_starttls` to `false` if sendmail hangs
        from = "<from address here>";
        host = "smtp-mail.outlook.com";
        user = "z.liu@outlook.com.gr";
        passwordeval = "cat /secrets/smtp_password.txt";
      };
    };
  };
}