My Cyberpanel host is dhanmondi.lonesock.pro. I pointed this host at my Cloudflare DNS server (Cloudflare is my DNS server). I have issued SSL for the host, mail server, and web for dhanmondi.lonesock.pro.
Now I am adding the domain name utsab.tv to my panel. The system automatically created the subdomain mail.utsab.tv. I have created a record called mail in Cloudflare and declared MX for utsab.tv with the value mail.utsab.tv. I have enabled SSL for utsab.tv and mail.utsab.tv for the web. When I connect Outlook via imap, I receive an SSL certificate error. It is showing that the certificate is being issued by dhanmondi.lonesock.pro.
I am new to CyberPanel. I was using HestiaCP, and this problem was not there. How do I solve this issue? I will host around 30 domains on this CyberPanel host.
You do not need to do anything extra beyond this. Just add your customer domains and setup mailserver as the primary mailserver domain or their own e.g. client.com will have mail.client.com or hey can use mail.primaryhost.com (I prefer this - no mail certificate issues) however both work perfectly with CyberPanel.
Solution to your problem
Issue mailserver ssl to mail.lonesock.pro and no other domain whatsoever.