Add function to load secret/password from file for security (#25)

New feature: Load SMTP password from file to avoid using env variables.
This commit is contained in:
dabde
2020-06-19 23:52:21 +02:00
committed by GitHub
parent 74ea38cd6e
commit af1f46641b
3 changed files with 12 additions and 2 deletions

View File

@ -8,7 +8,7 @@
# Mandatory: Username to authenticate with.
#SMTP_USERNAME=
# Mandatory: Password of the SMTP user.
# Mandatory: Password of the SMTP user. (Not needed if SMTP_PASSWORD_FILE is used)
#SMTP_PASSWORD=
# Mandatory: Server hostname for the Postfix container. Emails will appear to come from the hostname's domain.
@ -19,3 +19,6 @@
# Optional: This will add a header for tracking messages upstream. Helpful for spam filters. Will appear as "RelayTag: ${SMTP_HEADER_TAG}" in the email headers.
#SMTP_NETWORKS=
# Optional: Set this to a mounted file containing the password, to avoid passwords in env variables.
#SMTP_PASSWORD_FILE=