# DavMail

DavMail is a self-hosted communication app. DavMail POP/IMAP/SMTP/CalDAV/CardDAV/LDAP Exchange and Office 365 Gateway - Synced with main subversion repository at

Canonical page: https://ourlocalhost.com/app/8384/davmail

## Description

DavMail POP/IMAP/SMTP/CalDAV/CardDAV/LDAP Exchange and Office 365 Gateway - Synced with main subversion repository at

## Platform availability

Available on 2 of 10 platforms: Linux, Any server.

## Desktop and other devices

Linux.

## Health score

77/100 (Good), based on 4 of 5 factors.
- Maintained: 100 (last commit 10 days ago)
- Popular: 58 (779 GitHub stars)
- Easy to install: 35 (2 install platforms, install notes)
- Security check: 95 (no serious findings, CI, tests)

## Links

- Official website: https://davmail.sourceforge.net/
- GitHub: https://github.com/mguessan/davmail
- desktop: https://github.com/mguessan/davmail/releases/latest
- Documentation: https://github.com/mguessan/davmail

## Common questions

### Why does DavMail not start some services like IMAP or LDAP?

DavMail only starts a service if its port setting in davmail.properties is non-zero; leaving a port at 0 silently skips that service. Ports under 1024 (like default LDAP port 389) need admin privileges, and if another app already holds the port, DavMail will fail to bind and can quit on startup.

### How do I configure DavMail to connect to Office 365 with modern authentication?

You set the client ID and tenant ID in davmail.properties and set the server mode (davmail.mode) to O365. Confusion about where the client secret and IDs go in the properties file is a common stumbling block.

### What username format should I use to log in to Exchange through DavMail?

Use the traditional DOMAIN\user format for Exchange logins; DavMail handles the authentication automatically. Getting the username format wrong is a common cause of login failures on first run.

### Do I need to back up anything besides my mail data?

Back up your davmail.properties file (e.g. at /etc/davmail/davmail.properties). It must exist before DavMail loads and holds all key settings including your server mode, so losing it means re-doing your whole setup.

### Why does Thunderbird endlessly redownload messages through DavMail?

It's mostly a Thunderbird behavior that DavMail exacerbates rather than a DavMail bug. A workaround is to adjust the affected account's settings in Thunderbird's Account Settings for each problematic mailbox.

## Alternatives

- AppImageLauncher
- Email OAuth 2.0 Proxy
- ExQuilla
- GreenMail
- Imapforward
- Imapsize
- Offlineimap3
- Thunderbird-AppImage

---
Source: Our Local Host (https://ourlocalhost.com/app/8384/davmail), the self-hosted and open-source app directory.
