You are not logged in.
I'm hoping there's such a beast out there. Basically what I'm looking for is something to replace outlook. My company uses an Outlook Exchange server for mail/calendar/contact directory. I know there are several clients out there that can use the IMAP from there, but I haven't been able to find anything yet that allows access to the directory stored on the server. Is there such a thing? I don't care if it's console or GUI (I prefer console, though). I just need something that I can get working, and I'm willing to put in a little work to get it right if necessary. Thanks in advance!
Last edited by slackcub (2013-07-12 21:29:34)
Offline
What you need is davmail, available in the aur: https://aur.archlinux.org/packages/davmail/
It emulates IMAP, POP, CALDAV, and LDAP, pretty much giving you full access to the exchange server via either your company's webmail, or if using Exchange 2010 the EWS web services.
I used it with Thunderbird, and have the Lightning calendar extension added to it. It also gives access to the company directory. I have been using this to replace outlook for over a year with no real difficulties. The setup for some of these in thunderbird can be tricky, but I will be glad to help if you want to give it a try.
Offline
I will definitely have to look into that. Thanks for your response!
David
Offline
So I tried it out, and I kept getting user name/password errors. Here's the log output. (I censored it and put user.name instead of the first.last that is my user name and company instead of the name of my company)
2013-07-11 19:05:32,107 DEBUG [davmail.pop.PopServer] davmail - Connection from /0:0:0:0:0:0:0:1 on port 1110
2013-07-11 19:05:32,111 DEBUG [davmail.smtp.SmtpServer] davmail - Connection from /0:0:0:0:0:0:0:1 on port 1025
2013-07-11 19:05:32,261 DEBUG [SmtpConnection-56359] davmail.exchange.ExchangeSession - Test configuration status: 302
2013-07-11 19:05:32,262 DEBUG [SmtpConnection-56359] davmail - > 220 DavMail 4.3.3-2146 SMTP ready at Thu Jul 11 19:05:32 CDT 2013
2013-07-11 19:05:32,263 DEBUG [SmtpConnection-56359] davmail - < EHLO we-guess.mozilla.org
2013-07-11 19:05:32,264 DEBUG [SmtpConnection-56359] davmail - > 250-we-guess.mozilla.org
2013-07-11 19:05:32,265 DEBUG [SmtpConnection-56359] davmail - > 250-AUTH LOGIN PLAIN
2013-07-11 19:05:32,265 DEBUG [SmtpConnection-56359] davmail - > 250-8BITMIME
2013-07-11 19:05:32,265 DEBUG [SmtpConnection-56359] davmail - > 250 Hello
2013-07-11 19:05:32,266 DEBUG [SmtpConnection-56359] davmail - < QUIT
2013-07-11 19:05:32,266 DEBUG [SmtpConnection-56359] davmail - > 221 Closing connection
2013-07-11 19:05:32,268 DEBUG [PopConnection-60995] davmail.exchange.ExchangeSession - Test configuration status: 302
2013-07-11 19:05:32,268 DEBUG [PopConnection-60995] davmail - > +OK DavMail 4.3.3-2146 POP ready at Thu Jul 11 19:05:32 CDT 2013
2013-07-11 19:05:32,271 DEBUG [PopConnection-60995] davmail - < CAPA
2013-07-11 19:05:32,272 DEBUG [PopConnection-60995] davmail - > +OK Capability list follows
2013-07-11 19:05:32,272 DEBUG [PopConnection-60995] davmail - > TOP
2013-07-11 19:05:32,273 DEBUG [PopConnection-60995] davmail - > USER
2013-07-11 19:05:32,273 DEBUG [PopConnection-60995] davmail - > UIDL
2013-07-11 19:05:32,274 DEBUG [PopConnection-60995] davmail - > .
2013-07-11 19:05:32,274 DEBUG [PopConnection-60995] davmail - < QUIT
2013-07-11 19:05:32,275 DEBUG [PopConnection-60995] davmail - > +OK Bye
2013-07-11 19:05:34,271 DEBUG [davmail.pop.PopServer] davmail - Connection from /0:0:0:0:0:0:0:1 on port 1110
2013-07-11 19:05:34,396 DEBUG [PopConnection-60997] davmail.exchange.ExchangeSession - Test configuration status: 302
2013-07-11 19:05:34,397 DEBUG [PopConnection-60997] davmail - > +OK DavMail 4.3.3-2146 POP ready at Thu Jul 11 19:05:34 CDT 2013
2013-07-11 19:05:34,397 DEBUG [PopConnection-60997] davmail - < AUTH
2013-07-11 19:05:34,399 DEBUG [PopConnection-60997] davmail - > -ERR Invalid state not authenticated
2013-07-11 19:05:34,399 DEBUG [PopConnection-60997] davmail - < CAPA
2013-07-11 19:05:34,399 DEBUG [PopConnection-60997] davmail - > +OK Capability list follows
2013-07-11 19:05:34,400 DEBUG [PopConnection-60997] davmail - > TOP
2013-07-11 19:05:34,400 DEBUG [PopConnection-60997] davmail - > USER
2013-07-11 19:05:34,400 DEBUG [PopConnection-60997] davmail - > UIDL
2013-07-11 19:05:34,401 DEBUG [PopConnection-60997] davmail - > .
2013-07-11 19:05:34,439 DEBUG [PopConnection-60997] davmail - < USER user.name
2013-07-11 19:05:34,439 DEBUG [PopConnection-60997] davmail - > +OK USER : user.name
2013-07-11 19:05:34,440 DEBUG [PopConnection-60997] davmail - < PASS ********
2013-07-11 19:05:34,589 DEBUG [PopConnection-60997] davmail - executeFollowRedirects(https://nymail.company.com/owa/)
2013-07-11 19:05:34,618 DEBUG [PopConnection-60997] davmail - executeFollowRedirects: https://nymail.company.com/owa/auth/logon.aspx?url=https://nymail.ipsoft.com/owa/&reason=0 redirectCount:1
2013-07-11 19:05:34,646 DEBUG [PopConnection-60997] davmail.exchange.ExchangeSession - Form based authentication detected
2013-07-11 19:05:34,648 DEBUG [PopConnection-60997] davmail.exchange.ExchangeSession - Detected script based logon, redirect to form at https://nymail.company.com/owa/auth/logon.aspx?replaceCurrent=1&url=https%3a%2f%2fnymail.ipsoft.com%2fowa%2f
2013-07-11 19:05:34,648 DEBUG [PopConnection-60997] davmail - executeFollowRedirects(https://nymail.company.com/owa/auth/logon.aspx?replaceCurrent=1&url=https%3a%2f%2fnymail.ipsoft.com%2fowa%2f)
2013-07-11 19:05:34,690 DEBUG [PopConnection-60997] davmail - executeFollowRedirects(https://nymail.company.com/owa/auth.owa)
2013-07-11 19:05:34,721 DEBUG [PopConnection-60997] davmail - executeFollowRedirects: https://nymail.company.com/owa/auth/logon.aspx?url=https://nymail.ipsoft.com/owa/&reason=2 redirectCount:1
2013-07-11 19:05:34,749 ERROR [PopConnection-60997] davmail.exchange.ExchangeSession - Authentication failed: invalid user or password, retry with domain\user or use default domain setting
2013-07-11 19:05:34,749 ERROR [PopConnection-60997] davmail - Authentication failed: invalid user or password, retry with domain\user or use default domain setting
davmail.exception.DavMailAuthenticationException: Authentication failed: invalid user or password, retry with domain\user or use default domain setting
at davmail.exchange.ExchangeSession.throwAuthenticationFailed(ExchangeSession.java:711)
at davmail.exchange.ExchangeSession.checkFormLoginQueryString(ExchangeSession.java:703)
at davmail.exchange.ExchangeSession.postLogonMethod(ExchangeSession.java:526)
at davmail.exchange.ExchangeSession.formLogin(ExchangeSession.java:619)
at davmail.exchange.ExchangeSession.<init>(ExchangeSession.java:225)
at davmail.exchange.dav.DavExchangeSession.<init>(DavExchangeSession.java:500)
at davmail.exchange.ExchangeSessionFactory.getInstance(ExchangeSessionFactory.java:146)
at davmail.exchange.ExchangeSessionFactory.getInstance(ExchangeSessionFactory.java:94)
at davmail.pop.PopConnection.run(PopConnection.java:140)
2013-07-11 19:05:34,750 DEBUG [PopConnection-60997] davmail - > -ERR Authentication failed: invalid user or password, retry with domain\user or use default domain setting
2013-07-11 19:05:34,752 DEBUG [davmail.pop.PopServer] davmail - Connection from /0:0:0:0:0:0:0:1 on port 1110
2013-07-11 19:05:34,877 DEBUG [PopConnection-60998] davmail.exchange.ExchangeSession - Test configuration status: 302
2013-07-11 19:05:34,878 DEBUG [PopConnection-60998] davmail - > +OK DavMail 4.3.3-2146 POP ready at Thu Jul 11 19:05:34 CDT 2013
2013-07-11 19:05:34,878 DEBUG [PopConnection-60998] davmail - < CAPA
2013-07-11 19:05:34,879 DEBUG [PopConnection-60998] davmail - > +OK Capability list follows
2013-07-11 19:05:34,879 DEBUG [PopConnection-60998] davmail - > TOP
2013-07-11 19:05:34,879 DEBUG [PopConnection-60998] davmail - > USER
2013-07-11 19:05:34,879 DEBUG [PopConnection-60998] davmail - > UIDL
2013-07-11 19:05:34,880 DEBUG [PopConnection-60998] davmail - > .
2013-07-11 19:05:34,919 DEBUG [PopConnection-60998] davmail - < USER user.name@company.com
2013-07-11 19:05:34,919 DEBUG [PopConnection-60998] davmail - > +OK USER : user.name@company.com
2013-07-11 19:05:34,920 DEBUG [PopConnection-60998] davmail - < PASS ********
2013-07-11 19:05:35,079 DEBUG [PopConnection-60998] davmail - executeFollowRedirects(https://nymail.company.com/owa/)
2013-07-11 19:05:35,107 DEBUG [PopConnection-60998] davmail - executeFollowRedirects: https://nymail.company.com/owa/auth/logon.aspx?url=https://nymail.ipsoft.com/owa/&reason=0 redirectCount:1
2013-07-11 19:05:35,134 DEBUG [PopConnection-60998] davmail.exchange.ExchangeSession - Form based authentication detected
2013-07-11 19:05:35,136 DEBUG [PopConnection-60998] davmail.exchange.ExchangeSession - Detected script based logon, redirect to form at https://nymail.company.com/owa/auth/logon.aspx?replaceCurrent=1&url=https%3a%2f%2fnymail.ipsoft.com%2fowa%2f
2013-07-11 19:05:35,136 DEBUG [PopConnection-60998] davmail - executeFollowRedirects(https://nymail.company.com/owa/auth/logon.aspx?replaceCurrent=1&url=https%3a%2f%2fnymail.ipsoft.com%2fowa%2f)
2013-07-11 19:05:35,174 DEBUG [PopConnection-60998] davmail - executeFollowRedirects(https://nymail.company.com/owa/auth.owa)
2013-07-11 19:05:37,523 DEBUG [PopConnection-60998] davmail - executeFollowRedirects: https://nymail.company.com/owa/auth/logon.aspx?url=https://nymail.ipsoft.com/owa/&reason=2 redirectCount:1
2013-07-11 19:05:37,551 ERROR [PopConnection-60998] davmail.exchange.ExchangeSession - Authentication failed: invalid user or password, retry with domain\user or use default domain setting
2013-07-11 19:05:37,551 ERROR [PopConnection-60998] davmail - Authentication failed: invalid user or password, retry with domain\user or use default domain setting
davmail.exception.DavMailAuthenticationException: Authentication failed: invalid user or password, retry with domain\user or use default domain setting
at davmail.exchange.ExchangeSession.throwAuthenticationFailed(ExchangeSession.java:711)
at davmail.exchange.ExchangeSession.checkFormLoginQueryString(ExchangeSession.java:703)
at davmail.exchange.ExchangeSession.postLogonMethod(ExchangeSession.java:526)
at davmail.exchange.ExchangeSession.formLogin(ExchangeSession.java:619)
at davmail.exchange.ExchangeSession.<init>(ExchangeSession.java:225)
at davmail.exchange.dav.DavExchangeSession.<init>(DavExchangeSession.java:500)
at davmail.exchange.ExchangeSessionFactory.getInstance(ExchangeSessionFactory.java:146)
at davmail.exchange.ExchangeSessionFactory.getInstance(ExchangeSessionFactory.java:94)
at davmail.pop.PopConnection.run(PopConnection.java:140)
2013-07-11 19:05:37,552 DEBUG [PopConnection-60998] davmail - > -ERR Authentication failed: invalid user or password, retry with domain\user or use default domain settingAny suggestions?
Offline
If your company uses a windows domain you usually have to use that domain name as part of the username. So if your windows doamin is "blah", the username would be "blah\user.name" Give that a try.
Offline
That was part of my problem. I didn't realize there was a separate spot for user name in thunderbird during the setup process from where you put your email address. At one point I had tried putting domain\user.name@company.com as my email address, but that obviously didn't work. I'm authenticated now. Thanks!
David
Offline
Alright, I promise this will be my last question! I got my IMAP and Calendar syncing ok, but not the contacts, the main reason for trying davmail. I downloaded SOGo Connector, and I set that up according to DAVMail's website, but it never prompts me for a user name/pw, and it says on the bottom "Total contacts in Corporate: 0" I also am assuming that the caldav port is the same one used for carddav, correct? Thanks for any help you can give me!
David
Offline
For the contacts (In Thunderbird - Probably similar for other mail programs), go into Tools->Address Book. From Address book, select File -> New -> LDAP Directory.
In the configuration dialog,
General Tab:
Name: Your description of the directory
Hostname: localhost
Base DN: ou=people
Port number: 1398
Bind DN: domain\user.name
Advanced Tab:
Don't return more than 100 results
Scope: Subtree
Search filer: (objectclass=*)
Login method: Simple
Hope this helps,
John
Offline
I entered the information you provided, but that didn't help. I did a little more investigation and it turns out that the address directory we use here is actually a MAPI directory. How would I add that to Thunderbird? Is that possible using DAVmail?
David
Offline
Alright, I got it figured out. I skipped using davmail and just set up thunderbird to contact the LDAP directory server directly. I also needed to set the base DN to "dc=company,dc=net".
David
Offline