diff options
Diffstat (limited to 'config/msmtp/msmtprc.nix')
-rw-r--r-- | config/msmtp/msmtprc.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/config/msmtp/msmtprc.nix b/config/msmtp/msmtprc.nix new file mode 100644 index 000000000000..5320b27a470a --- /dev/null +++ b/config/msmtp/msmtprc.nix @@ -0,0 +1,24 @@ +{ stdenv, gnupg }: + +'' +defaults +auth on +tls on +tls_trust_file ${if stdenv.isDarwin + then /etc/ssl/cert.pem + else /etc/ssl/certs/ca-bundle.crt} + +account work +host smtp.gmail.com +port 587 +from alyssa.ross@freeagent.com +user alyssa.ross@freeagent.com + +account personal +host smtp.fastmail.com +port 465 +tls_starttls off +from hi@alyssa.is +user alyssa@fastmail.com +passwordeval ${gnupg}/bin/gpg --no-tty -q -d ${./smtppass.gpg} +'' |