Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ linux/s390x
* `SMTP_PASSWORD`: Set the password for authentication. Authentication must be activated with the `SMTP_AUTH` env var.
* `SMTP_DOMAIN`: Argument of the `SMTP EHLO` command (default `localhost`)
* `SMTP_FROM`: Set the envelope-from address. Supported substitution patterns can be found [here](https://marlam.de/msmtp/msmtp.html#Commands-specific-to-sendmail-mode).
* `SMTP_FROM_FULL_NAME`: Set the full name to use in the From header when msmtp adds one.
* `SMTP_ALLOW_FROM_OVERRIDE`: Allow configured envelope-from address to be overriden by actual SMTP MAIL FROM . Can be [`on` or `off`](https://marlam.de/msmtp/msmtp.html#Commands-specific-to-sendmail-mode) (default `on`)
* `SMTP_SET_FROM_HEADER`: When to set a From header. Can be [`auto`, `on` or `off`](https://marlam.de/msmtp/msmtp.html#Commands-specific-to-sendmail-mode) (default `auto`)
* `SMTP_SET_DATE_HEADER`: When to set a Date header. Can be [`auto` or `off`](https://marlam.de/msmtp/msmtp.html#Commands-specific-to-sendmail-mode) (default `auto`)
Expand Down
2 changes: 2 additions & 0 deletions rootfs/etc/cont-init.d/02-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ TZ=${TZ:-UTC}
#SMTP_PASSWORD=${SMTP_PASSWORD:-bar}
#SMTP_DOMAIN=${SMTP_DOMAIN:-example.com}
#SMTP_FROM=${SMTP_FROM:-foo@example.com}
#SMTP_FROM_FULL_NAME=${SMTP_FROM_FULL_NAME:-Foo Bar}
#SMTP_SET_FROM_HEADER=${SMTP_SET_FROM_HEADER:-auto}
#SMTP_SET_DATE_HEADER=${SMTP_SET_DATE_HEADER:-auto}
#SMTP_REMOVE_BCC_HEADERS=${SMTP_REMOVE_BCC_HEADERS:-on}
Expand Down Expand Up @@ -71,6 +72,7 @@ if [ -n "$SMTP_USER" ]; then echo "user $SMTP_USER" >> /etc/
if [ -n "$SMTP_PASSWORD" ]; then echo "password $SMTP_PASSWORD" >> /etc/msmtprc; fi
if [ -n "$SMTP_DOMAIN" ]; then echo "domain $SMTP_DOMAIN" >> /etc/msmtprc; fi
if [ -n "$SMTP_FROM" ]; then echo "from $SMTP_FROM" >> /etc/msmtprc; fi
if [ -n "$SMTP_FROM_FULL_NAME" ]; then echo "from_full_name $SMTP_FROM_FULL_NAME" >> /etc/msmtprc; fi
if [ -n "$SMTP_ALLOW_FROM_OVERRIDE" ]; then echo "allow_from_override $SMTP_ALLOW_FROM_OVERRIDE" >> /etc/msmtprc; fi
if [ -n "$SMTP_SET_FROM_HEADER" ]; then echo "set_from_header $SMTP_SET_FROM_HEADER" >> /etc/msmtprc; fi
if [ -n "$SMTP_SET_DATE_HEADER" ]; then echo "set_date_header $SMTP_SET_DATE_HEADER" >> /etc/msmtprc; fi
Expand Down