Any update on this? I'm having the same issue. When trying to use Gmail to send emails, it's failing.
When I attempt to update the mail settings in Gmail, it's reporting a "TLS Negotiation failed, the certificate doesn't match the host., code: 0"
I've attempted to do some debugging. When I issue this command in a Linux command prompt, it's showing me old certificate details:
openssl s_client -starttls smtp -showcerts -connect domain.com:587
I've even completely deleted the SSL certificate for the domain in aaPanel, but it doesn't seem to actually delete it.