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

Feature_add-smtp_use_tls_option #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ This image supports the following enironment variables. All are **required**.
| `SMTP_RELAY_PASSWORD` | Password for upstream SMTP relay server | `pAsSwOrD` |
| `SMTP_RELAY_MYHOSTNAME` | Hostname of this SMTP relay | `smtp-relay.yourhost.com` |
| `SMTP_RELAY_MYNETWORKS` | Comma-separated list of local networks that can use this SMTP relay | `127.0.0.0/8,10.0.0.0/8` |
| `SMTP_RELAY_WRAPPERMODE` | Request postfix connects using SUBMISSIONS/SMTPS protocol instead of STARTTLS | `no` |
| `SMTP_RELAY_WRAPPERMODE` | Request postfix connects using SUBMISSIONS/SMTPS protocol instead of STARTTLS | `no` |
| `SMTP_TLS_SECURITY_LEVEL` | default SMTP TLS security level for the Postfix SMTP client | `""` |
| `SMTP_USE_TLS` | Define TLS usage to secure communication between mail servers | `no` |

# Quickstart
Run on docker
Expand Down
1 change: 1 addition & 0 deletions smtp-relay.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ rm /etc/postfix/sasl_passwd || exit 1
postconf 'smtp_sasl_auth_enable = yes' || exit 1
postconf 'smtp_sasl_password_maps = lmdb:/etc/postfix/sasl_passwd' || exit 1
postconf 'smtp_sasl_security_options =' || exit 1
postconf "smtp_use_tls = ${SMTP_USE_TLS:-no}" || exit 1

# These are required.
postconf "relayhost = ${SMTP_RELAY_HOST}" || exit 1
Expand Down