DavMail is a POP/IMAP/SMTP/Caldav/Carddav/LDAP gateway for Microsoft Exchange. This Dockerized version simplifies building, installing, running, and upgrading DavMail.
For more information, code, and support, visit the official DavMail website.
DavMail is a gateway that allows you to use standard email clients (like Thunderbird or Outlook) to access Microsoft Exchange services. This Docker image provides an easy way to deploy and manage DavMail in a containerized environment.
-
Review the DavMail configuration examples and references.
-
Edit the
docker-compose.yaml
file to set your desired environment variables. -
Start the service:
docker-compose up -d
To stop the service:
docker-compose down
Note: The entrypoint script stores persistent configuration data in the davmail-config
volume. If this volume is deleted, some configuration data may be lost. To disable persistence, set DISABLE_DAVMAIL_PROPERTIES_PERSISTENCE=true
.
To run DavMail with Docker:
docker run -it --rm \
-e DAVMAIL_SERVER=true \
-p 1025:1025 \
-p 1110:1110 \
kran0/davmail-docker:latest
This command publishes ports 1025
(SMTP) and 1110
(POP) and uses a single environment variable. For more configuration options, refer to the examples in docker-compose.yaml
and tests/compose-sut.yaml
, as well as the official DavMail documentation.
To use a traditional text-based configuration file, mount it as a volume and pass it as a command:
docker run -it --rm \
-v $PWD/conf/davmail.properties.example:/davmail/davmail.properties \
-p 1025:1025 \
-p 1110:1110 \
kran0/davmail-docker:latest /davmail/davmail.properties
To deploy DavMail in a Kubernetes cluster, use the provided manifest:
kubectl create -f k8s-pod.yaml