Fix run commands, make them multiline for clarity.
This commit is contained in:
parent
7d07a7f365
commit
ac60809874
1 changed files with 12 additions and 4 deletions
16
README.md
16
README.md
|
@ -20,13 +20,21 @@ The following env variables need to be passed to the container:
|
|||
* `SMTP_USERNAME` Username to authenticate with.
|
||||
* `SMTP_PASSWORD` Password of the SMTP user.
|
||||
|
||||
To use this container from anywhere, the port 25 needs to be exposed to the docker host server:
|
||||
To use this container from anywhere, the 25 port needs to be exposed to the docker host server:
|
||||
|
||||
docker run --rm --name postfix -p "25:25" -e SMTP_SERVER=smtp.bar.com -e SMTP_USERNAME=foo@bar.com -e SMTP_PASSWORD=XXXXXXXX postfix
|
||||
docker run -d --name postfix -p "25:25" \
|
||||
-e SMTP_SERVER=smtp.bar.com \
|
||||
-e SMTP_USERNAME=foo@bar.com \
|
||||
-e SMTP_PASSWORD=XXXXXXXX \
|
||||
postfix
|
||||
|
||||
If you are going to use this container from other docker containers then it's better to just publish the port:
|
||||
|
||||
docker run --rm --name postfix -P -e SMTP_SERVER=smtp.bar.com -e SMTP_USERNAME=foo@bar.com -e SMTP_PASSWORD=XXXXXXXX postfix
|
||||
docker run -d --name postfix -P \
|
||||
-e SMTP_SERVER=smtp.bar.com \
|
||||
-e SMTP_USERNAME=foo@bar.com \
|
||||
-e SMTP_PASSWORD=XXXXXXXX \
|
||||
postfix
|
||||
|
||||
|
||||
#### A note about using gmail as a relay
|
||||
|
@ -36,4 +44,4 @@ for authentication (like Thunderbird or Outlook). First you need to enable acces
|
|||
[google settings](https://www.google.com/settings/security/lesssecureapps).
|
||||
|
||||
Also take into account that email `From:` header will contain the email address of the account being used to
|
||||
authenticate against the Gmail SMTP server(SMTP_USERNAME), the one on the email will be ignored by Gmail.
|
||||
authenticate against the Gmail SMTP server(SMTP_USERNAME), the one on the email will be ignored by Gmail.
|
||||
|
|
Loading…
Reference in a new issue