Public Repository

Last pushed: 2 years ago
Short Description
Active Directory enabled mailserver providing Exim4 MTA and Dovecot MUA.
Full Description

This image will create a email server providing ADC users (currently SAMBA 4 tested only) with email services. In order to run it you will need:
one SAMBA4 ADC

Environmental variables

SAMBA_REALM = the realm for the samba installation
SAMBA_SERVER = the servername or the docker link name. Defaults to ADC
SAMBA_LOGIN = for authentication reasons we have got to supply a user to conect to SAMBA server.
SAMBA_PASSWORD = the password for the supplied DN
MAIL_SERVER_NAME = the name for the mailserver (will apear in the SMTP server banner)
MAIL_RECIPIENT_DOMAINS = usualy only one name containing the domain we receive mail for.
MAIL_RELAY_DOMAINS = usualy none - see exim4 doc for more details

Exposed PORTS: [22], 25, 110, 143, 465, 587, 993, 995.

Exposed volumes: /var/mail - will contain the user homes for the email services. They are automatically created when a user first log in.

Example setup:
sudo docker run -v /mail:/var/mail -e "SAMBA_REALM=ccpr.ro" -e "SAMBA_SERVER:adc" -e "SAMBA_LOGIN=lauth" -e "SAMBA_PASSWORD=<<<<>>>>" -e "SAMBA_BASEDN=dc=ccpr,dc=ro" -e "MAIL_SERVER_NAME=mail.ccpr.ro" -e "MAIL_RECIPIENT_DOMAINS=ccpr.ro" -e "MAIL_RELAY_DOMAINS=ccpr.ro" -e "MAIL_RELAY_HOSTS=127.0.0.1;::1" --link ccpr-dc1:adc --name adc-mail-prod -p 0.0.0.0:25:25 -p 0.0.0.0:110:110 -p 0.0.0.0:143:143 -p 0.0.0.0:465:465 -p 0.0.0.0:587:587 -p 0.0.0.0:993:993 -p 0.0.0.0:995:995 -d achirosca/exim4-dovecot-adc

Recomendations

After startup make sure you wait for the setup to complete (using docker logs -f container_name). Only a complete installation will be usable. This log also contains the administrator login for the container.

Always check the DNS setup to point to SAMBA4 ADC for Domain Name Resolution. use dig google.com to see the IP of the DNS in use. Change /etc/resolv.conf if needed.

Docker Pull Command
Owner
achirosca