This docker image provide a mail service based on Ubuntu
1.4K
This docker image provide a postfix and dovecot service based on Ubuntu This image have dependencies:
This mail image is create with the utilization of let's encrypt in mind
version: '2'
services:
memcached:
image: memcached:alpine
restart: always
mariadb:
image: mariadb
restart: always
volumes:
- /mariadb/data:/var/lib/mysql
amavis:
image: aknaebel/amavis
links:
- mariadb
volumes:
- /amavis/data/amavis:/var/lib/amavis
- /amavis/data/clamav:/var/lib/clamav
- /amavis/data/spamassassin:/var/lib/spamassassin
volumes:
VIMBADMIN_PASSWORD=vimbadmin_password
DBHOST=mariadb
HOSTNAME=mail.example.com
container_name: amavis
restart: always
mail:
image: aknaebel/mail
links:
- mariadb
- amavis
- opendkim
volumes:
- /mail/data:/var/vmail
- /etc/letsencrypt:/etc/letsencrypt
environment:
[email protected]
VIMBADMIN_PASSWORD=vimbadmin_password
DBHOST=mariadb
HOSTNAME=mail.knaebel.fr
SSL_KEY_PATH=/etc/letsencrypt/live/##HOSTNAME##/privkey.pem
SSL_CERT_PATH=/etc/letsencrypt/live/##HOSTNAME##/fullchain.pem
ports:
- "25:25"
- "587:587"
- "110:110"
- "143:143"
- "993:993"
- "995:995"
- "4190:4190"
container_name: mail
restart: always
vimbadmin:
image: aknaebel/vimbadmin
links:
- mariadb
- mail
- memcached
volumes_from:
- mail
environment:
VIMBADMIN_PASSWORD=vimbadmin_password
DBHOST=mariadb
MEMCACHE_HOST=memcached
[email protected]
ADMIN_PASSWORD=admin_password
SMTP_HOST=smtp.example.com
APPLICATION_ENV=production
OPCACHE_MEM_SIZE=128
restart: always
opendkim:
image: aknaebel/opendkim
volumes:
- /opendkim/data/KeyTable:/etc/opendkim/KeyTable
- /opendkim/data/SigningTable:/etc/opendkim/SigningTable
- /opendkim/data/TrustedHosts:/etc/opendkim/TrustedHosts
- /opendkim/data/keys:/tmp/keys
container_name: opendkim
restart: always
docker-compose up -d
The image provide the following ports and protocols:
For the environment variables related to the other images, please see the documentation of the images.
The image is mainly design to work with Let's Encrypt but you can use any other SSL certificate.
See the official postfix documentation and official dovecot documention to configure a specific option of your mail image
Content type
Image
Digest
Size
63.8 MB
Last updated
over 5 years ago
docker pull aknaebel/mail