diff --git a/README.md b/README.md index d124ffd0..9f3ac44e 100644 --- a/README.md +++ b/README.md @@ -18,9 +18,8 @@ Additional informations: - mails are stored in `/var/mail/${domain}/${username}` - email login are full email address (`username1@my-domain.com`) - ssl is strongly recommended -- do not add whitespace in `$docker_mail_users` or `$docker_mail_aliases` - 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` - 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 # usage -docker-compose up -d mail + + docker-compose up -d mail # client configuration diff --git a/postfix/virtual b/postfix/virtual index 7718604a..03991098 100644 --- a/postfix/virtual +++ b/postfix/virtual @@ -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 -#Mail redirection from postmaster@domain.tld and hostmaster@domain.tld to user@domain.tld -user2@domain.tld postmaster hostmaster \ No newline at end of file +# +# ALIAS => from alias@domain.tld (alias) to user@domain.tld (real account) +# alias@domain.tld user@domain.tld +# +# FORWARD => from redirect@domain.tld to a list of internal/external email addresses +# redirect@domain.tld otheruser@domain.tld otheruser@otherdomain.tld +# \ No newline at end of file diff --git a/start-mailserver.sh b/start-mailserver.sh index dd845180..60e50ecd 100644 --- a/start-mailserver.sh +++ b/start-mailserver.sh @@ -25,8 +25,7 @@ do echo ${domain} >> /tmp/vhost.tmp done < /tmp/postfix/accounts.cf makeuserdb - -#copying virtual file +# Copying virtual file cp /tmp/postfix/virtual /etc/postfix/virtual echo "Postfix configurations"