Skip to content

Dockerfile for DavMail POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange Gateway

License

Notifications You must be signed in to change notification settings

kran0/davmail-docker

Repository files navigation

DavMail Dockerized

Build Status Docker Version

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.


What is DavMail?

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.


How to Run

Using Docker Compose

  1. Review the DavMail configuration examples and references.

  2. Edit the docker-compose.yaml file to set your desired environment variables.

  3. 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.


Using Docker Run

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.


Using a Text-Based Configuration File

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

Deploying to Kubernetes

To deploy DavMail in a Kubernetes cluster, use the provided manifest:

kubectl create -f k8s-pod.yaml

Docker Tags

Repository:Tag Description
kran0/davmail-docker:latest Latest stable release
kran0/davmail-docker:x.y.z Stable releases following semantic versioning Docker Version
kran0/davmail-docker:trunk Trunk and test builds from the latest SVN repository HEAD. May be unstable!

Links


About

Dockerfile for DavMail POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange Gateway

Resources

License

Stars

Watchers

Forks

Packages

No packages published