forked from docker-mailserver/docker-mailserver
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed "docker_mail_domain" env. variable to use docker hostname and…
… improved documentation for docker-mailserver#13
- Loading branch information
Showing
3 changed files
with
11 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ Additional informations: | |
|
||
- only config files, no *sql database required | ||
- mails are stored in `/var/mail/${domain}/${username}` | ||
- you should use a data volume container for `/var/mail` for data persistence | ||
- email login are full email address (`[email protected]`) | ||
- ssl is strongly recommended | ||
- user accounts are managed in `./postfix/accounts.cf` | ||
|
@@ -33,7 +34,7 @@ Additional informations: | |
|
||
## run | ||
|
||
docker run -v "$(pwd)/postfix":/tmp/postfix -v "$(pwd)/spamassassin":/tmp/spamassassin -p "25:25" -p "143:143" -p "587:587" -p "993:993" -e docker_mail_domain=my-domain.com -t tvial/docker-mailserver | ||
docker run --name mail -v "$(pwd)/postfix":/tmp/postfix -v "$(pwd)/spamassassin":/tmp/spamassassin -p "25:25" -p "143:143" -p "587:587" -p "993:993" -h mail.my-domain.com -t tvial/docker-mailserver | ||
|
||
## docker-compose template (recommended) | ||
|
||
|
@@ -47,11 +48,9 @@ Additional informations: | |
- "143:143" | ||
- "587:587" | ||
- "993:993" | ||
environment: | ||
docker_mail_domain: "my-domain.com" | ||
volumes: | ||
- ./spamassassin:/tmp/spamassassin/:ro | ||
- ./postfix:/tmp/postfix/:ro | ||
- ./spamassassin:/tmp/spamassassin/ | ||
- ./postfix:/tmp/postfix/ | ||
|
||
Volumes allow to: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
[email protected]|mypassword | ||
[email protected]|mypassword |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters