DavMail Setup on linux

Standalone setup

Prerequisite: Latest OpenJDK from standard distribution repository or installed locally

For interactive authentication two different options are now supported:

  • SWT: if Eclipse SWT is available, DavMail will use SWT browser support to obtain O365 authentication token. This is based on your native installed browser.
  • OpenJFX: requires a JDK with OpenJFX support, embedded browser is based on webkit.

Tray icon support: due to various bugs with recent Plasma / Wayland, tray icon is now disabled by default. To enable tray icon support, run DavMail with -tray option or change option in settings.

  • Download the platform independent package from Sourceforge and uncompress it with your favorite tool unzip davmail-version.zip
  • Fetch Azul JDK with OpenJFX support: ./davmail azul
  • Fetch SWT for your architecture: ./davmail swt
  • Run DavMail: ./davmail [davmail.properties]

Debian package

This page describes DavMail setup as a graphical application, if you don't want or need a user interface you can run DavMail in server mode

Note: there is an official Debian package for DavMail, see https://packages.debian.org/fr/sid/davmail. However, the latest version may not be available in your distribution, in that case this project provided package is an option, it comes with embedded dependencies.

Download current debian package from Sourceforge, double-click on it to launch package installer.

Select Install Package, installer will automatically download and install Java and the appropriate SWT package. After installation, DavMail is available in the Applications menu.

In order to run DavMail with systray on Ubuntu 18, you need:

  • Top icons and appindicator:sudo apt-get install gnome-shell-extension-top-icons gnome-shell-extension-appindicator gnome-tweak-tool
  • Enable both in Tweaks
  • Then run DavMail: XDG_CURRENT_DESKTOP= && davmail

On recent Ubuntu versions with Gnome, AppIndicator and KStatusNotifierItem is required for tray icon support

Update for Ubuntu Unity users, you can install Indicator SystemtrayUnity: http://www.webupd8.org/2015/05/on-demand-system-tray-for-ubuntu.html

Note to Ubuntu 14 users, you can restore systray by following instructions at: How to whitelist all systray apps in Ubuntu 14.04 or 14.10 (with Unity)

Note to Ubuntu 13 users, you will need to apply the following patch to fix missing whitelist regression: Unity Desktop with Systray Whitelisting Support

Note to Ubuntu 12 Natty users: they eventually fixed Oneiric issue, use gsettings command below

Note to Ubuntu 11.10 Oneiric users: Unity does not support system tray defined by FreeDesktop, you will need to switch to standard Gnome Panel to use DavMail (and any other application using system tray)

Note to Ubuntu 10.04 users: all tray icons are hidden by default, use the following command to restore normal mode:

gsettings set com.canonical.Unity.Panel systray-whitelist "['all']"

If it still does not work, launch DavMail with notray option:

davmail -notray

Fedora

Latest released package is available on build.opensuse.org and Fedora COPR

On Fedora or Centos, enable COPR repository and install DavMail package: dnf copr enable mguessan/davmail dnf install davmail

Tray icon support is not available by default on Fedora with Gnome desktop. You can run DavMail in window mode or install AppIndicator and KStatusNotifierItem Support

Settings

Adjust DavMail settings : Getting started