“SMTP Error: Could not connect to SMTP host. Connection failed. stream_socket_enable_crypto(): Peer certificate CN=int-srv-g6-1.xxx.xxx' did not match expected CN=smtp.xxx.xxx’ SMTP server error: QUIT command failed”
the certificate in question DOES have smtp.xxx.xxx as a SAN subject alternate name. int-srv-g6-1 is the SPN subject principle name.
It seems your plugin is only checking the SPN and not the available SANs
Thanks for reaching out to us and we apologise for the delay.
Please kindly know, that the error you shared is returned by your SMTP server.
We suspect that your web host is redirecting SMTP traffic to their server. This is why the certificate presented didn’t match the hostname.
Please, contact your web host support with the same full SMTP log after sending a test email, and they can look into the issue for you.
Unfortunately, we can’t perform fixes from our end because this issue is hosting/SMTP server-related.
Please note that these types of errors usually only come up with the Other SMTP mailer, as it’s not an API-based mailer. In cases where ongoing issues arise while using the Other SMTP mailer, we generally recommend switching to a transactional mailer option (all mailers except the Other SMTP and Default (none) option).
Please create a new thread in our support forum of your own and share the full error log that you received after sending a test email (please ensure to strip away any credentials or email addresses.