No matter what I do I can not Apple Mail to Connect to zimbra through IMAP, or POP.

I always get the same error

Trying to log into the IMAP server has failed. Please make sure the username and password are correct. If you continue, you may not be able to receive any email.

It is making me crazy...

can anybody offer any advice.