diff --git a/templates/msmtprc.j2 b/templates/msmtprc.j2 index defc4b5..aefbecc 100644 --- a/templates/msmtprc.j2 +++ b/templates/msmtprc.j2 @@ -3,7 +3,11 @@ defaults auth on tls on +{% if msmtp_tls_trust_file is defined %} +tls_trust_file {{msmtp_tls_trust_file}} +{% else %} tls_trust_file /etc/ssl/certs/ca-certificates.crt +{% endif %} # Logging {% if msmtp_log is defined %} @@ -33,4 +37,4 @@ password {{msmtp_account.password}} # Default account to use account default : {{msmtp_default_account}} -aliases /etc/aliases \ No newline at end of file +aliases /etc/aliases