Improved documentation related to #11

This commit is contained in:
Thomas VIAL 2015-08-10 12:20:50 +02:00
parent e8107b4ecc
commit dd4f90e66e
3 changed files with 11 additions and 9 deletions

View file

@ -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

View file

@ -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
#

View file

@ -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"