Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support allow_from_override setting #79

Closed
wants to merge 1 commit into from
Closed
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 @@ -90,6 +90,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_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`)
* `SMTP_REMOVE_BCC_HEADERS`: Controls whether to remove Bcc headers. Can be [`on` or `off`](https://marlam.de/msmtp/msmtp.html#Commands-specific-to-sendmail-mode) (default `on`)
Expand Down
1 change: 1 addition & 0 deletions rootfs/etc/cont-init.d/02-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,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_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
if [ -n "$SMTP_REMOVE_BCC_HEADERS" ]; then echo "remove_bcc_headers $SMTP_REMOVE_BCC_HEADERS" >> /etc/msmtprc; fi
Expand Down
Loading