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") }}
|
2021-06-02 06:24:33 +00:00
|
|
|
port {{ env "SMTP_PORT" }}
|
|
|
|
|
2023-10-23 09:26:10 +00:00
|
|
|
{{ if eq (env "SMTP_OVERRIDE_FROM") "on" }}
|
|
|
|
set_from_header on
|
|
|
|
{{ end }}
|
|
|
|
|
2021-06-02 06:24:33 +00:00
|
|
|
{{ 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 }}
|