A SMTP server using LDAP as user database backend
6.5K
A Docker image running Postfix on Debian stable ("jessie" at the moment) with the LDAP backend (using bind auth)
The Postfix is configured to :
$DOMAIN to the mda host using the LMTP protocol. (MDA: Mail Delivery Agent)LDAP backend)The image exposes several TCP ports:
The image exposes three directories:
/etc/ssl/localcerts/smtp.cert.pem and /etc/ssl/localcerts/smtp.key.pem. If none are provided, the startup script will generate new keys and self-signed certificate.The most simple use would be to start the application like so :
docker run -d
-p 25:25
--link ldap-container:ldap
--link mda-container:mda
-e LDAP_USER_FIELD="uid"
-e LDAP_BASE="ou=users,dc=yourdomain,dc=com"
-e DOMAIN="yourdomain.com"
-e HOSTNAME="smtp.yourdomain.com"
teid/postfix-ldap
However, you should use your own certificate and a data-only container to persist the postfix queues:
docker run -d
-p 587:587
-p 465:465
--link ldap-container:ldap
--link mda-container:mda
--volumes-from smtp-certs
--volumes-from smtp-queues
-e LDAP_USER_FIELD="uid"
-e LDAP_BASE="ou=users,dc=yourdomain,dc=com"
-e DOMAIN="yourdomain.com"
-e HOSTNAME="smtp.yourdomain.com"
teid/postfix-ldap
Note: If you are using a custom configuration volume, do not use the following variables.
The following environment variables allow you to configure the container:
usernamemda host)smtp.yourdomain.com). Used during HELO commands. Some remote SMTP server might refuse your messages if this variable is missing or misconfiguredContent type
Image
Digest
Size
73.1 MB
Last updated
over 8 years ago
docker pull teid/postfix-ldap