2024-03-04 17:21:50 +00:00
|
|
|
# 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
|
|
|
|
|
2024-03-04 19:02:02 +00:00
|
|
|
{{ range $value := .mail }}
|
|
|
|
# {{ $value.comment }}
|
|
|
|
account {{ $value.account }}
|
|
|
|
host {{ $value.smtpsrv }}
|
|
|
|
port {{ $value.smtport }}
|
|
|
|
auth {{ $value.smtpaut }}
|
2024-03-04 17:21:50 +00:00
|
|
|
tls on
|
|
|
|
tls_starttls off
|
2024-03-04 19:02:02 +00:00
|
|
|
user {{ $value.usrname }}
|
|
|
|
passwordeval "echo $(pass {{ $value.smtpsrv }}/{{ $value.usrname }})"
|
|
|
|
auto_from {{ $value.autofro }}
|
|
|
|
from {{ $value.address }}
|
|
|
|
#
|
|
|
|
{{ end }}
|
2024-03-04 17:21:50 +00:00
|
|
|
|