1. Home
  2. Jetpack CRM
  3. System Emails
  4. Mail Delivery Setup Issue stream_socket_enable_crypto(): Peer certificate did not match expected

Mail Delivery Setup Issue stream_socket_enable_crypto(): Peer certificate did not match expected

Fix the Mail Delivery Setup error stream_socket_enable_crypto(): Peer certificate did not match expected

If your mail setup fails in Jetpack CRM and you see an SSL or certificate error during verification, this documentation page will help you understand what’s happening and how to fix it quickly.

Overview of the mail delivery setup issue

By reading this page you can sort out a specific mail delivery setup issue that can appear when configuring Jetpack CRM on shared hosting or small virtual servers.

If you are looking for the general setup guide instead, see the following page:
Mail Delivery setup in Jetpack CRM.

Understand the SSL verification error

When setting up your mail delivery through the SMTP setup wizard, you may see an error message like this when attempting to verify your mail endpoint:

stream_socket_enable_crypto(): Peer certificate did not match expected

This message means that Jetpack CRM attempted to create a secure connection between your WordPress server and your chosen mail server, but something about the SSL (secure connection) validation failed.

The most common causes are:

  • The remote mail server has an outdated or misconfigured SSL certificate.
  • DNS records are outdated and still point to an old domain or server name.

In short, your server expected to connect securely to one hostname, but the SSL certificate presented by the mail server didn’t match that hostname exactly.

Is this error dangerous?

In most cases, this issue is not dangerous. It simply prevents Jetpack CRM from validating the SSL certificate during setup.

Jetpack CRM only uses this connection for outgoing mail, so disabling SSL verification here does not affect your site’s general PHP or WordPress SSL security.

To make things easier, Jetpack CRM includes a built-in option to disable SSL verification for mail delivery only (see below), allowing you to continue sending emails securely without failing verification due to hostname mismatches.

Fix the SMTP SSL mismatch

Since version 2.95.4, Jetpack CRM automatically handles most SSL-related mail delivery problems.
However, in some cases you may need to enable the SSL verification override manually.

Here’s how to do it:

  1. Go to Jetpack CRM → CRM Settings → Mail.
  2. In the “Global Mail Settings” section, enable (check) the option “Disable SSL Verification.”
  3. Scroll down and click Save Settings.
  4. Run the Mail Delivery Setup Wizard again and verify your SMTP configuration.

If everything is correct, Jetpack CRM should now successfully validate your mail delivery method.

Additional troubleshooting tips

If you continue to see SMTP or SSL errors:

  • Try refreshing your DNS records or contact your hosting provider to ensure your domain and mail server records are up-to-date.
  • Verify your mail credentials and port numbers match your provider’s recommended configuration.
  • Check your host’s firewall or security settings to ensure SMTP ports are not blocked (commonly 465, 587, or 25).

If the problem persists, please contact our support and include:

  • A description of what you tried.
  • The full debug log (from the Mail Delivery setup wizard).

This will help the support team diagnose the problem faster.

Updated on October 10, 2025
Was this article helpful?

Related Articles

Still not found an answer?
If you've searched the Knowledge Base and still can't find a solution, please submit a ticket.
CONTACT SUPPORT