1. Goto Add Account.. option from Mail Menu of apple Mail.

imap-apple-mail-client-setup-step-1
Step 1 : Select Add Account

2. Select Add Other Mail Account… then click on Continue

imap-apple-mail-client-setup-step-2
Step 2 : Select Add Other Mail Account

3. Add a Mail Account details: Name, Email and Password then click Create

imap-apple-mail-client-setup-step-3
Step 3 : Add a Mail Account details

4. Add Incoming Mail Server Info : Select IMAP in account type, then Enter your IMAP Mail Server address, Your full email address as User Name and password then click Next

imap-apple-mail-client-setup-step-4
Step 4 : Add Incoming Mail Server Info

5. Verify Certificate : If you have configure SSL on your imap and if it is self signed certificate then you might get this additional box, Just click Connect.

imap-apple-mail-client-setup-step-5
Step 5 : Verify Certificate

6. Outgoing Mail server Info : Just Enter your SMTP mail server details then click Create

imap-apple-mail-client-setup-step-6
Step 6 : Outgoing Mail server Info