about summary refs log tree commit diff
path: root/config/msmtp/msmtprc.nix
blob: 5320b27a470a5e803c72e442ba145dea1aeadb44 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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}
''