Issues adding icloud calendar with same username as e-mail IMAP account

Hello

I use IMAP/SMTP e-mail with user mike@domain.com
all works fine

I would like to add my icloud calendar. Here my user-ID is also mike@domain.com

How can I add the calendar? EM client always says wrong password.
Is there a way to configure the setting in a asci file?
Thanks
mike

When you added the iCloud account using eM Client’s Automatic Setup, did it not add the calendar and contacts as well?

Can you go to Menu > Accounts and click on the General tab for the iCloud account. Scroll down to Services and see if CalDAV and CardDAV are there. If they are, tick them, then click on Save & Close.