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
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.
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']"
Prerequisite: OpenJDK 6 or 7 or Sun JRE 6. Tray icon is now implemented with SWT and compatible with Java 5.
Note: some users reported issues with OpenJDK 6, please upgrade to OpenJDK 7 in this case.
You should first download and install Java, with the graphical package manager or through command line.
Under Ubuntu, launch System/Administration/Synaptic Package Manager, quick search default-jre, mark for installation and click Apply
Or use the following command:sudo apt-get install default-jre
Download the linux x86 DavMail package from Sourceforge and uncompress it with your favorite tool. The standard package will run natively on x86, to use DavMail on any other hardware platform, replace the SWT with the right one from http://www.eclipse.org/swt/ or use the platform independent package.
On Ubuntu and other Gnome or Kde distributions, just use the desktop launcher. On other distributions, try davmail.sh. You should now see the DavMail gateway icon in the tray :
Adjust DavMail settings : Getting started