icloud Authentification failed

I am trying to access my icloud emails with eMClient. I rgenerated a new, Application Specific Password from Apple. All settings have originally been generated automatically by eM Client, I assume this is all correct. For e-Mail and User Name I set my icloud email address and the password is said application specific one. (even tried already to generate another one, no change).
emClient continues to report the message from the server “[AUTHENTIFICATIONFAILED] Authentification failed” and asks for the password. I tried even here the application specific password but even the regal iCloud password. Nothing works.

Sometimes, even when the credentials are correct, the password will be rejected if the settings are incorrect.

Go to Menu > Tools > Accounts and check that the IMAP and SMTP ports have the correct security policy.

Here are the correct combinations:

Port 587 = Force usage of SSL/TLS
Port 25 = Use SSL/TLS if available
Port 465 = Use SSL/TLS on special port (legacy)

Port 993 = Use SSL/TLS on special port (legacy)
Port 143 = Use SSL/TLS if available

Port 995 = Use SSL/TLS on special port (legacy)
Port 110 = Use SSL/TLS if available