Support SMTP relay configuration

Hopefully this doesn't bork existing relay configs
This commit is contained in:
decentral1se
2021-06-02 08:24:33 +02:00
parent 8399631c81
commit 9fa2b2d1b7
4 changed files with 26 additions and 1 deletions
+11
View File
@@ -1,3 +1,14 @@
account default
host {{ env "SMTP_HOST" }}
from {{ env "MAIL_FROM" }}
port {{ env "SMTP_PORT" }}
{{ 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 }}