Using DavMail with Exchange for Linux
posted by Ted on
My one bone of contention in using Linux has been the paucity of Exchange-compatible clients. I have the inclination to blame M$, but hey--my Android phone client works just fine. Evolution, Thunderbird, KMail--sure, I can get IMAP mail, but none have worked to the point of syncing with my appointments. Enter DavMail. I'll show you how to install it and set it up to work with your company's Exchange server.
First, some background: DavMail's basically a server, written in Java, running on your local box or somewhere else. It used Outlook Web Access to get your mail, calendar, and other stuff and then re-sends them using standard protocols like IMAP, LDAP, CalDav, etc. A post with an explanatory graphic is here. Disclaimer: These instructions assume you are using Ubuntu 10.10 (Maverick) with at least Java 5 installed.
Installation
- Go to http://sourceforge.net/projects/davmail/files/ and click the Download link for the .deb file. After downloading, install the .deb.
- Start DavMail by entering davmail in a terminal. You will see a yellow circle in your notification area.
- Right click the DavMail icon and select Settings....
- Enter your webmail's URL in the OWA (Exchange) URL field. It will be something like https://mail.yourcompany.com/owa/.
- Make note of the Local IMAP SMTP, and LDAP port settings, and then close the dialog.
- Start your favorite email client, and configure a new account with the following settings:
- Incoming server type: IMAP
- Server name: localhost
- Port: <The port from DavMail's Local IMAP port setting>
- Username: <Your corporate email address> note-you may need <Domain_name>\\ on the front of this, depending on which version of Exchange you are on.
- No connection security, and set authentication method to whatever your corporate exchange server's authentication method is.
- Outgoing (SMTP) server name: localhost
- Port: <The port from DavMail's Local SMTP port setting>
- Username: <Your corporate user name> note-you may need <Domain_name>\\ on the front of this, depending on which version of Exchange you are on.
- No connection security, and set authentication method to whatever your corporate exchange server's authentication method is.
E-mail configuration
Calendar configuration
Clients vary on how to configure calendars, but I'll give the general settings.
- Start your favorite email client, and configure a new calendar with the following settings:
- Calendar type: CalDav
- Server name: localhost
- Port: <The port from DavMail's Local CalDav port setting>
- URL: http://localhost:1080/users/mail@company.com/calendar
- Save the calendar.