1. Home
  2. Zero BS 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 Zero BS 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 ZBS 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 ZBS 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 ZBS 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 2.95.4 Zero BS 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 Zero BS CRM Settings
  2. Click “Mail” from the left hand settings menu
  3. The Mail settings page will look something like this:
  4. Make sure “Disable SSL Verification” is checked & click Save (at bottom)
  5. 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 September 21, 2018

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

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.