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.
Note: see section below to setup an account on older OSX versions
Launch Apple Mail and choose Add Other Mail Account in add account dialog
Provide Full Name, Email address and password and click Create
Confirm "Account must be manually configured" by clicking Next
Account type is IMAP, mail server is DavMail host (localhost for workstation mode)
Enter username (can be email or windows login), click next
Confirm "Additional account information required" by clicking Next
Leave path prefix empty (except for shared mailbox access), enter DavMail IMAP port, authentication is password, click next
SMTP server is DavMail host again, click Create
Confirm "Additional account information required" by clicking Next
Enter DavMail SMTP port, authentication is password, then click Create
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