Public | Automated Build

Last pushed: a year ago
Short Description
Postfix with dovecot into docker
Full Description

Postfix with dovecot into docker

##Create email addresses:
Use MySQL DB with tables; add email domains into mail_virtual_domains, add email users to mail_virtual_users.

pull from DockerHub

docker pull dmtr/docker-postfix-dovecot

Docker build

docker build -t postfix .

docker run

sudo docker run -i -t -e APP_HOST=mail.raccoongang.com -e DB_NAME=postfix -e DB_USER=root -e DB_PASSWORD=password -p 25:25 -p 110:110 -p 143:143 -p 995:995 -p 587:587 -v /var/run/mysqld/:/var/run/mysqld -v /home/vmail:/home/vmail/ dmtr/docker-postfix-dovecot

Environment variables

  • APP_HOST (required)- email server host
  • DB_NAME (required) - database
  • DB_USER (root) - user to access mysql database
  • DB_PASSWORD - mysql user password

Directories

  • /var/run/mysqld/:/var/run/mysqld/ - MySQL socket
  • /home/vmail/:/home/vmail/ - directory to store emails
Docker Pull Command
Owner
dmtr

Comments (0)