Looking for the instructions for Ubuntu 11.10? Click here.
Thanks to a link posted by tanstaalf to a French project, DavMail, I was finally able to connect to my company’s Microsoft Exchange 2010 server from my beloved Mozilla Thunderbird client. The solution lies in installing an Exchange gateway called DavMail. I run this on my localhost, but this can naturally be set up on any host.
I can verify connecting successfully to the following services: Email, Calendar and Directory.
Install DavMail on Ubuntu 11.04 (64bit)
Looking for the instructions for Ubuntu 11.10? Click here.
I run a pretty standard Ubuntu 11.04 64 bit OS (download here). If you have a different distro, or run a 32-bit version, you can still use this HOWTO, just adapt the parts that are 64-bit specific.
Install the prerequisites:
$ sudo apt-get install sun-java6-bin libswt-gtk-3.6-java
Download and install DavMail:
$ wget http://downloads.sourceforge.net/project/davmail/davmail/3.9.5/davmail_3.9.5-1805-1_all.deb
$ sudo dpkg -i davmail_3.9.5-1805-1_all.deb
DavMail should now be installed. Continue to the next section.
Configure DavMail
Now, start DavMail from the main menu:
Applications -> Internet -> DavMail
You should now see an icon in your system tray that looks like this:
Right click on the icon, choose settings and set the URL to your OWA (Exchange) server (e.g.https://webmail.mycompany.com/exchange/):
Save, and DavMail is ready to go. You can check out the logs by right clicking on the icon and selecting «Show logs».
DavMail is made to work for any email client. Here are the instructions for Thunderbird.
Ubuntu 11.04 (64bit): Thunderbird 3.1
Thunderbird is not part of the default installation in Ubuntu 11.04, so you need to install it manually:
$ sudo apt-get install thunderbird
Set up new email account
Open Thunderbird and configure your email servers like this:
Your Username must be in the following form: DOMAIN\USER
The email client will complaint that you are using an insecure connection to the server, but that’s allright, as it runs on localhost.
Configure an existing account
In Thunderbird, go to Edit -> Account Settings, and edit the Server settings, so they look like this:
Your Username must be in the following form: DOMAIN\USER
Also, edit the SMTP server settings, so they look like this:
Your Username must be in the following form: DOMAIN\USER
Set up calendar
Download lightning.xpi og gdata-provider.xpi, og install the extensions from file in Thunderbird (Tools -> Addons -> Install):
Now, restart Thunderbird, and open the Calendar.
Add a new calendar and use a URL like this: http://localhost:1080/users/<YOUR FULL EMAIL ADDRESS>/calendar :
Important note! If you leave the Email set to None, no invitations will be sent to other participants when you arrange meetings.
Set up Directory Service (Active Directory)
Open up the Address book in Thunderbird and add a new LDAP directory like this:
Note: The Bind DN must be in the following form: DOMAIN\USER
Howdy! I just wish tto give youu a big thumbs up for your great information you have gott right here on this post.
I am returning to yoiur blog ffor more soon.
Wow, this post is good, my younger sister is analyzing these kinds of things, thus I am going to inform her.
Glad I could help! 🙂
Tilbaketråkk: دریافت و ارسال ایمیل Exchange در لینوکس | یادداشتهای مهدی
Tilbaketråkk: Windows:sta linuxiin « harritimonen.net
I am sure this paragraph has touched all the
internet users, its really really pleasant piece
of writing on building up new webpage.
Aw, this was an incredibly good post. Taking a few minutes and actual effort to
generate a really good article… but what can I say… I hesitate a whole
lot and never manage to get nearly anything done.
Tusind tak for a good guide!
Thanks to it, I’m now happily using icedove and iceowl (unbranded Debian provided versions of Thunderbird and Lightning) for my Exchange 2010 access combining my Google calendars with my Exchange calendar, great stuff! 🙂
The only thing I would suggest is to provide links to download pages instead of the actual packages (xpis and debs) which would make it easier for people to find the latest versions.
Also, a good trick to get the dependencies right when installing external debs is to do a simple ‘dpkg -i’ of the package you want to install … it will fail if it has unmet dependencies, BUT you can then do a ‘apt-get install -f’ and have apt to figure out the dependencies 🙂
This is fantastic. Thank you!
Tilbaketråkk: thunderbird + ms exchange « open your eyes
Ok, I solved both my questions. First, you can run multiple instances of davmail by calling different config files at the command line (e.g. davmail .hotmail.dav & davmail .work.dav). I was able to get contacts by changing the address of my exchange server. My company has two different addresses for it. As you said though I still can’t get contacts offline…not such a big deal! Thanks again for introducing me to this!
My pleasure, I’m glad you figured it out. 🙂
I’m having a bit of trouble getting contacts to populate in. I entered the Directory Server Properties exactly as you did, but they are stil not showing up. I tried Download Now on the Offline tab as well, which states ‘Replication succeeded’ but still no contacts show up. Is Base DN something that needs to be customized? Sorry, I don’t know much about LDAP.
I actually never got to see the contacts locally, but they show up when you start typing in an address in an email. Sorry, but I don’t have a solution right away. I will look into it over the summer, though.
Outstanding! What if I have multiple exchange accounts?
That’s interesting I haven’t tried that yet
Hey thx for this, worked fine for me
Tilbaketråkk: Linux exchange sync like android do
Awesome post. Thanks!
I was stuck on Evolution for a long time, but it’s always been so unstable. I’ve gotten Thunderbird up and running like a charm.
🙂
Happy to help! 🙂
Tilbaketråkk: Exchange email and Linux | Baggers on the Web
New package seems to be working, thanks
Tilbaketråkk: Thunderbird as client for Microsoft Exchange 2010 server on Ubuntu 11.10 « Ad-hoc knowledge
followed your instructions for davmail in Ubuntu 11.10 64bit which worked but now I get this message from the system «The following packages have unmet dependencies: davmail: Depends: libswt-gtk-3.4-java but it is not installed»
Hello, Mark!
Yes, I can verify that issue. I’ll have a look and get back to you.
Cheers!
I’ve posted a request on the davmail project for a new .deb package that is compatible with Ubuntu 11.10.
I’ve also asked a friend of mine to build a .deb package.
Let’s give them a couple of days to respond before we go any further.
SOLVED: I’ve built a package for 11.10. I’ve put it on the https://guzaho.wordpress.com/2011/10/18/thunderbird-as-client-for-microsoft-exchange-2010-server-on-ubuntu-11-10/
Thanks to Christian B. for his help!
Please let me know how it goes.
cheers,
gustavo
Maybe you can do «sudo dpkg –configure –force-depends davmail» to configure it instead of «sudo apt-get -f install».
Indeed. Gracias, Javier! 🙂
Hi again.
I tried the OpenJDK route with no luck. The command «sudo apt-get install openjdk-7-jre» does install the OpenJDK, but the subsequent install of DavMail (via dpkg -i) fails with plenty of errors.
Using «sudo apt-get -f install» actually removes the davmail package…that’s what apt-get says, though the package is never properly installed.
I tried the above steps in Ubuntu 11.10 64-bit.
cheers,
Jernej
PS: And I fsck* hate Outlook, Evolution…
Hello again Jernej!
I’ve updated the howto with the tip from Javier. Please try it out and let me know if it works for you.
Hello again, Jernej.
I’ve created a Ubuntu 11.10 version of this howto here: https://guzaho.wordpress.com/2011/10/18/thunderbird-as-client-for-microsoft-exchange-2010-server-on-ubuntu-11-10/
Please let me know how that works for you.
Cheers!
Hi.
Just to let you know that in Ubuntu 11.10 the package sun-java6-bin does not exist anymore. It has been renamed to ??? (I’m still trying to find the package).
Regards,
Jernej
Hey Jernej!
Thanks for the heads up! 🙂 I guess it was only a matter of time after Oracle bought Sun that this happened. Oh, well.
I found this statement: «Oracle Java (JVM/JDK) will not be available in the Debian / Ubuntu repositories anymore because Oracle retired the «Operating System Distributor License for Java» (JDL) and the only release available in the repositories will be OpenJDK.»
Here’s a HOWTO installing the Sun (Oracle) JDK: http://www.webupd8.org/2011/09/how-to-install-oracle-java-7-jdk-in.html
However, if the openJDK works well, I’d like to stick to that, especially due to admin simplicity:
$ sudo apt-get install openjdk-7-jre
I’ll update this HOWTO as soon as I can verify that the OpenJDK works as expected. 🙂
Cheers,
Gustavo