mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
Improved documentation related to #11
This commit is contained in:
parent
e8107b4ecc
commit
dd4f90e66e
|
@ -18,9 +18,8 @@ Additional informations:
|
||||||
- mails are stored in `/var/mail/${domain}/${username}`
|
- mails are stored in `/var/mail/${domain}/${username}`
|
||||||
- email login are full email address (`username1@my-domain.com`)
|
- email login are full email address (`username1@my-domain.com`)
|
||||||
- ssl is strongly recommended
|
- ssl is strongly recommended
|
||||||
- do not add whitespace in `$docker_mail_users` or `$docker_mail_aliases`
|
|
||||||
- user accounts are managed in `./postfix/accounts.cf`
|
- user accounts are managed in `./postfix/accounts.cf`
|
||||||
- redirections are managed in `./postfix/redirects.cf`
|
- aliases and fowards/redirects are managed in `./postfix/virtual`
|
||||||
- antispam are rules are managed in `./spamassassin/rules.cf`
|
- antispam are rules are managed in `./spamassassin/rules.cf`
|
||||||
- files must be mounted to `/tmp` in your container (see `docker-compose.yml` template)
|
- files must be mounted to `/tmp` in your container (see `docker-compose.yml` template)
|
||||||
|
|
||||||
|
@ -60,7 +59,8 @@ Volumes allow to:
|
||||||
- Manage mail users, passwords and aliases
|
- Manage mail users, passwords and aliases
|
||||||
|
|
||||||
# usage
|
# usage
|
||||||
docker-compose up -d mail
|
|
||||||
|
docker-compose up -d mail
|
||||||
|
|
||||||
# client configuration
|
# client configuration
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
#Mail redirection from user@domain.tld to otheruser@domain.tld and otheruser@otherdomain.tld
|
#
|
||||||
user1@domain.tld otheruser@domain.tld otheruser@otherdomain.tld
|
# ALIAS => from alias@domain.tld (alias) to user@domain.tld (real account)
|
||||||
#Mail redirection from postmaster@domain.tld and hostmaster@domain.tld to user@domain.tld
|
# alias@domain.tld user@domain.tld
|
||||||
user2@domain.tld postmaster hostmaster
|
#
|
||||||
|
# FORWARD => from redirect@domain.tld to a list of internal/external email addresses
|
||||||
|
# redirect@domain.tld otheruser@domain.tld otheruser@otherdomain.tld
|
||||||
|
#
|
|
@ -25,8 +25,7 @@ do
|
||||||
echo ${domain} >> /tmp/vhost.tmp
|
echo ${domain} >> /tmp/vhost.tmp
|
||||||
done < /tmp/postfix/accounts.cf
|
done < /tmp/postfix/accounts.cf
|
||||||
makeuserdb
|
makeuserdb
|
||||||
|
# Copying virtual file
|
||||||
#copying virtual file
|
|
||||||
cp /tmp/postfix/virtual /etc/postfix/virtual
|
cp /tmp/postfix/virtual /etc/postfix/virtual
|
||||||
|
|
||||||
echo "Postfix configurations"
|
echo "Postfix configurations"
|
||||||
|
|
Loading…
Reference in a new issue