Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 1.15 KB

README.md

File metadata and controls

23 lines (15 loc) · 1.15 KB

davmail-docker

A simple docker-compose and Dockerfile to davmail.

Contents of the davmail directory was downloaded from Sourceforge.

First time setup

Using the davmail.mode=O365Modern is a little bit tricky, because a session token always needs to be refreshed. Luckily, davmail does this, but first we need to give it permission. So for the first run:

  1. Change the log levels in the davmail.propertiesto DEBUG
  2. When the authentication fails, click the link in the logs and give it permission in the O365.
  3. You can set back the log levels. From this point, it will be handled.

Used custom configuration

  • davmail configuration can be found in davmail.properties.
    It is the same as recommended in the Server Setup, except:

    • davmail.mode=O365Modern (see above)
  • IMAP port is mapped to 7007 (in docker-compose.yml)

  • SMTP port is mapped to 7008 (in docker-compose.yml)

  • All other davmail supported ports are not exposed.