wordpress/msmtp.conf.tmpl

20 lines
460 B
Cheetah
Raw Permalink Normal View History

2020-09-26 18:31:13 +00:00
account default
host {{ env "SMTP_HOST" }}
2020-09-27 19:27:08 +00:00
from {{ env "MAIL_FROM" }}
2023-10-23 09:26:10 +00:00
user {{ or (env "SMTP_USER") (env "MAIL_FROM") }}
port {{ env "SMTP_PORT" }}
2023-10-23 09:26:10 +00:00
{{ if eq (env "SMTP_OVERRIDE_FROM") "on" }}
set_from_header on
{{ end }}
{{ if eq (env "SMTP_AUTH") "on" }}
auth {{ env "SMTP_AUTH" }}
passwordeval "cat /run/secrets/smtp_password"
{{ end }}
{{ if eq (env "SMTP_TLS") "on" }}
tls {{ env "SMTP_TLS" }}
tls_trust_file /etc/ssl/certs/ca-certificates.crt
{{ end }}