NOTE: Please check out alpine-virtualmail which is smaller
2.7K
Virtualmail on Docker.
A summary of this container:
"The virtualmail container deploys and configures everything you need to provide email hosting. The container includes software for POP3 and IMAP, spam filtering, antivirus, and email groups (via a listserv)."
Thanks @timbert for pointing it out
- MySQL
- Docker
$ docker build -t combro2k/virtualmail https://github.com/combro2k/virtualmail.git
$ docker run -d \
--link mysql:mysql \
-e "POSTFIX_MYSQL_PASSWORD=postfixpassword" \
-h 'mail.example.org' \
-v /var/vmail:/var/vmail \
-P \
combro2k/virtualmail:latest
$ docker run -d \
--link mysql:mysql \
-e "POSTFIX_MYSQL_PASSWORD=postfixpassword" \
-e "IP6DEV=eth1" \
-e "IPV6ADDR=postfixpassword" \
-e "IPV6GW=postfixpassword" \
-h 'mail.example.org' \
-v /var/vmail:/var/vmail \
-P \
combro2k/virtualmail:latest
$ docker run -d \
-e "MYSQL_PORT_3306_TCP_ADDR=172.0.0.24" \
-e "MYSQL_PORT_3306_TCP_PORT=3306" \
-e "POSTFIX_MYSQL_PASSWORD=postfixpassword" \
-h 'mail.example.org' \
-v /var/vmail:/var/vmail \
-P \
combro2k/virtualmail:latest
$ docker run -d \
-e "MYSQL_PORT_3306_TCP_ADDR=172.0.0.24" \
-e "MYSQL_PORT_3306_TCP_PORT=3306" \
-e "POSTFIX_MYSQL_PASSWORD=postfixpassword" \
-e "MAILINGLIST=list.example.org" \
-h 'mail.example.org' \
-v /var/vmail:/var/vmail \
-v /var/mailman:/var/mailman \
-P \
combro2k/virtualmail:latest
You can extract all the default configs for example:
$ tar zxvf ~/root/config.tar.gz -C / /etc/mailman
You can build an specific app again by running /usr/local/bin/setup.sh [app]
$ /usr/local/bin/setup.sh postfix
Content type
Image
Digest
sha256:0a25e2859…
Size
1.3 GB
Last updated
about 9 years ago
docker pull combro2k/virtualmail