When you create the account, you have to set the domain name as e.g. mail.domain.com
Otherwise the SSL will fail because the domain isn't pointing to CWP.
Then just create your MX record and A records to point to CWP at your DNS provider.
To access webmail, you will have to create a redirect (which CWP usually does automatically in Apache), or just use mail.domain.com/webmail.