Hello Everyone,
I will try to explain everything with as much detail as i can.
Everything worked well enough. Website and Mail SSLs where issued from lets encrypt and i could connect the mail server to any mail client i wanted through imap etc. Mail SSL expired though and renewal did not work. I tried the manual way and i couldn’t in any way get it to work. Long story short, i bought an ssl specifically for the mail (mail.domain and www.mail.domain) server thus stopping relying on the autorenewal of cyberpanel.
For the record i self host everything. 1 firewall is in front of two servers. 443 goes to 1rst server (docker etc) and the reverse proxy there takes 443 traffic from specific urls and passes them to cyberpanels server (for example domain.com on cyberpanel passes through server1 to server2) and 587,110,143,25,465,993 go straight to cyberpanel. Also i use Cloudflare for DNS using the proxy feature only on the main domain and not the mail domain.
Last but not least, installing the SSL went something like this. I went to domains, list domains, checked the mail.domain.com and in the ssl section i put the contents of the cert + ca-bundle and in the right section i put the private key → Save → restart lsws.
Its not that easy. You have to go through a vpn and a pam server and im not comfortable giving access to company’s infostruc. Can you please guide me through the process? Also for some reason i cannot directly send you a message