There are two ways to access Exchange emails through DavMail Gateway: the good old and efficient POP protocol, limited to Inbox access and the IMAP protocol that enables full message folder tree access. IMAP support in DavMail is more recent and less optimised than POP. This page describes OSX IMAP Mail setup.
Launch Apple Mail, open Preferences and click the plus button to create a new account. Enter you full name, email address and password:
Choose IMAP account type, enter description, DavMail gateway address (localhost). Check username and password:
Click continue, if DavMail is not listening on the default IMAP port (143), you will get the following error message, click Continue again to proceed:
Leave SSL unchecked and click Continue:
Enter Outgoing Mail Server (SMTP) description and DavMail gateway address (localhost). Check Use Authentication and enter your Exchange username and password:
Click continue, if DavMail is not listening on the default SMTP port (25), you will get the following error message, click Continue again to proceed:
Leave SSL unchecked and click Continue:
Check summary and click Create:
Open the Mailbox Behaviors tab and uncheck Store sent messages on server, as Exchange already stores each sent message in this folder:
Under the advanced tab, enter actual DavMail IMAP port:
Under the Account Information tab, choose Edit Server List in Outgoing Mail Server (SMTP) field:
Open the advanced tab, check use custom port and enter actual DavMail SMTP port:
You may also want to set the Add invitations to iCal parameter to Never:
Proceed to OSX Address Book setup