1
0
chezmoi/home/dot_msmtprc.tmpl
2024-03-04 20:02:02 +01:00

23 lines
566 B
Cheetah

# Set default values for all following accounts.
defaults
auto_from on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
syslog on
# logfile /var/log/msmtp.log
{{ range $value := .mail }}
# {{ $value.comment }}
account {{ $value.account }}
host {{ $value.smtpsrv }}
port {{ $value.smtport }}
auth {{ $value.smtpaut }}
tls on
tls_starttls off
user {{ $value.usrname }}
passwordeval "echo $(pass {{ $value.smtpsrv }}/{{ $value.usrname }})"
auto_from {{ $value.autofro }}
from {{ $value.address }}
#
{{ end }}