CyberPanel Keeps Replacing Mail Server SSL

Hello,

I recently installed a fresh version of CyberPanel and followed these steps:

  1. During the setup wizard, I skipped the rDNS check since AWS doesn’t support it in my case.
  2. CyberPanel set my mail server as maindomain.com instead of mail.maindomain.com, which was the default behavior in previous installations.
  3. I manually created an ‘addon’ domain: mail.maindomain.com.
  4. I issued an SSL mail server certificate for mail.maindomain.com.
  5. Email works fine for a while.
  6. However, after a server restart, CyberPanel replaces the Let’s Encrypt SSL certificate with a Cloudflare certificate, breaking email access via POP.
  7. To restore functionality, I have to manually upload my backed-up Let’s Encrypt certificates to /etc/dovecot and restart dovecot.

How can I properly configure CyberPanel to recognize mail.maindomain.com as the mail server and prevent it from replacing the SSL certificate?

Any help would be greatly appreciated.

Thanks!

Seems to happen mostly when the machine restarts.

Current Version:2.3

Build: 9

Current Commit: 654e9f282cb523500906d639153a5b5b77c323b4

Latest Version: 2.3

Latest Build: 9

Latest Commit: e4dc3ae2f7f834cc278f2ba4d8f265691923c424