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}`
|
||||
- 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
|
||||
|
||||
|
|
|
@ -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
|
||||
#
|
||||
# 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
|
||||
#
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue