So I have played about for days, I did this because when trying EmClient, it said there was an SSL issue, and it was not the only place I saw an SSL error, and when clicking reissue, I saw there were lots of issues with trying to generate a SSL for imap.domain.name
I changed the mail server URL from imap.domain.name to my.domain.name and then checked DNS. I noticed the DNS had not been updated, did it manually. I checked the logs as the process was being done, it stated that the DNS record had been updated, but it had not.
Since changing my mail server address to the same URL as my cloudron server, the connection seems to be more stable, with faster responses and no SSL errors.
Outlook it still not working and seems to find the old URL where as all other apps are seeing the new URL and still loading the imap.domain.name, we have given up on this issue.
What is the point in being able to change the domain name and subdomain of the mail server when it don't seem to be liked by mail clients.