Issue with CARDDAV / CALDAV with IMAP / Autodiscover

When setting up an email account with all such services enabled, eM Client doesn’t respect the Autodiscover settings.

From reading @Michal_Burger post in the following thread, the Stalwart server implementation was the issue and went against specification. eM Client was going to contact Stalwart and also try and make a workaround as per below, but I don’t know the outcome of that.