1. Home
  2. Jetpack CRM Core
  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

This guide describes a very specific problem you may encounter if you are setting up Jetpack CRM mail delivery on a shared host or small virtual server. If you are looking for the general ‘how to set up mail delivery’ please see the full guide: Mail Delivery setup in Jetpack CRM.

SSL Verification

If you’re trying to go through the SMTP mail delivery setup wizard, and you’re having trouble ‘verifying’ your mail endpoint, you can now click ‘Debug’ to see more info on what’s happening. If you click that and then see an error similar to this:

stream_socket_enable_crypto(): Peer certificate did not match expected

… then this is your issue. Ultimately Jetpack CRM is trying to send mail out from your server, through another, and the other server has an outdated SSL certificate, or the DNS somewhere along the network has outdated name records for this domain. Either way, it’s often safe to ‘ignore’ this verification, and as such Jetpack CRM has an option for you to disable this (just for outbound mail, this setting will not affect your general PHP ssl verification).

How to remedy SMTP SSL mismatch

Since v2.95.4 Jetpack CRM will do its best to solve this problem for you, but you may need to go into settings and enable the feature. Here’s how:

  1. Go to Jetpack CRM Settings
  2. Click “Mail” from the left hand settings menu
  3. Make sure “Disable SSL Verification” is checked & click Save (at bottom)
  4. Re-run the Mail Delivery Setup wizard and you will hopefully find that your SMTP method will now verify.

If you hit any other SMTP setup issues, please do contact support, including the full ‘debug’ log as mentioned above. For more information on Mail Delivery methods, see the full guide.

Updated on June 3, 2020

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