Title: error establishing a secure connection
Last modified: October 19, 2016

---

# error establishing a secure connection

 *  Resolved [tmmslynn](https://wordpress.org/support/users/tmmslynn/)
 * (@tmmslynn)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/error-establishing-a-secure-connection/)
 * Hi everyone,
 * I am using Postie. To date I have not had any problems with it. I run the blog
   for my school and we use this for teachers to post to their pages. Today I had
   a few teachers say they sent them email but the post is not up yet. When I go
   to process emails i get this error message “error establishing a secure connection”
 * What might this mean? and how can I fix it?

Viewing 15 replies - 1 through 15 (of 29 total)

1 [2](https://wordpress.org/support/topic/error-establishing-a-secure-connection/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/error-establishing-a-secure-connection/page/2/?output_format=md)

 *  Plugin Author [Wayne Allen](https://wordpress.org/support/users/wayneallen-1/)
 * (@wayneallen-1)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/error-establishing-a-secure-connection/#post-8330126)
 * What version of Postie?
 * Did anything get changed on the server?
 *  Thread Starter [tmmslynn](https://wordpress.org/support/users/tmmslynn/)
 * (@tmmslynn)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/error-establishing-a-secure-connection/#post-8330132)
 * 1.8.5. Nothing got changed.
 *  [tfogarty](https://wordpress.org/support/users/tfogarty/)
 * (@tfogarty)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/error-establishing-a-secure-connection/#post-8330287)
 * I am getting the same error after updating to 1.8.5. I am using POP3 (no SSL)
   with Sockets (not cURL) on port 110 and I am getting the following (note: I substituted
   <host>, <domain>, <name> for the actual names):
    ——————- “Warning: stream_socket_enable_crypto():
   Peer certificate CN=`*.mail.<host>.com' did not match expected CN=`mail.<domain
   >.com’ in /home/<name>/<domain>.com/blog/wp-content/plugins/postie/lib/pSocketConnection.
   php on line 76
 * Error establishing secure connection
    ——————-
 * Besides updating the Postie plugin no other changes were made.
 *  Plugin Author [Wayne Allen](https://wordpress.org/support/users/wayneallen-1/)
 * (@wayneallen-1)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/error-establishing-a-secure-connection/#post-8330580)
 * Thanks for the report. I’ve enabled TLS 1.0, 1.1 and 1.2 in the next version (
   to be released shortly).
 * If you still have the error with 1.8.6 then your server is likely using SSLv2
   or SSLv3 which both have well documented security issues.
 *  [BrianTokyo](https://wordpress.org/support/users/briantokyo/)
 * (@briantokyo)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/error-establishing-a-secure-connection/#post-8331095)
 * Same issue with 1.8.6 :/
 * Warning: stream_socket_enable_crypto(): Peer certificate CN=`host.x.com' did 
   not match expected CN=`x.com’ in /home/x/public_html/wp-content/plugins/postie/
   lib/pSocketConnection.php on line 82
 * Error establishing secure connection
 *  Plugin Author [Wayne Allen](https://wordpress.org/support/users/wayneallen-1/)
 * (@wayneallen-1)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/error-establishing-a-secure-connection/#post-8331117)
 * You might check with your mail server to see if it supports TLS.
 *  [BrianTokyo](https://wordpress.org/support/users/briantokyo/)
 * (@briantokyo)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/error-establishing-a-secure-connection/#post-8331131)
 * I don’t have my own SSL cert, it’s a VPS.
 *  Plugin Author [Wayne Allen](https://wordpress.org/support/users/wayneallen-1/)
 * (@wayneallen-1)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/error-establishing-a-secure-connection/#post-8331670)
 * This is about the mail server, not your web server.
 * If you’re on DreamHost there is a technical note that may help:
    [https://help.dreamhost.com/hc/en-us/articles/215306748-Certificate-domain-mismatch-error-when-connecting-to-a-DreamHost-mail-server](https://help.dreamhost.com/hc/en-us/articles/215306748-Certificate-domain-mismatch-error-when-connecting-to-a-DreamHost-mail-server)
 *  [BrianTokyo](https://wordpress.org/support/users/briantokyo/)
 * (@briantokyo)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/error-establishing-a-secure-connection/#post-8332330)
 * Fixed it!
 * Just changed domain.com (website url) to host.server.com (vps host) in the “Mail
   Server” settings.
 * Thanks.
 *  Thread Starter [tmmslynn](https://wordpress.org/support/users/tmmslynn/)
 * (@tmmslynn)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/error-establishing-a-secure-connection/#post-8334184)
 * Still not working. What do i type in for vps host? How do I know if I have VPS?
   I use bluehost.
 *  [BrianTokyo](https://wordpress.org/support/users/briantokyo/)
 * (@briantokyo)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/error-establishing-a-secure-connection/#post-8334207)
 * Show me the full error message.
 *  Thread Starter [tmmslynn](https://wordpress.org/support/users/tmmslynn/)
 * (@tmmslynn)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/error-establishing-a-secure-connection/#post-8334271)
 * all it says is error establishing secure connection
    -  This reply was modified 9 years, 7 months ago by [tmmslynn](https://wordpress.org/support/users/tmmslynn/).
 *  [BrianTokyo](https://wordpress.org/support/users/briantokyo/)
 * (@briantokyo)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/error-establishing-a-secure-connection/#post-8334313)
 * Try the debug function on the right pane.
 *  Thread Starter [tmmslynn](https://wordpress.org/support/users/tmmslynn/)
 * (@tmmslynn)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/error-establishing-a-secure-connection/#post-8334335)
 * Postie Version: 1.8.6
    Wordpress Version: 4.6.1 PHP Version: 5.6.24 OS: Linux
   box6069.bluehost.com 3.12.52-20160119.106.ELK6.x86_64 #1 SMP Tue Jan 19 16:53:
   32 CST 2016 x86_64 POSTIE_DEBUG: On Time: 2016-10-20 12:46:24 GMT Error log: 
   error_log TMP dir: /tmp/ Postie is in /home3/tmmslynn/public_html/wp-content/
   plugins/postie/ cURL version: 7.24.0 Cron: On Alternate Cron: Off wp_content_path:/
   home3/tmmslynn/public_html/wp-content postie_getemails: Connecting to mail.tmmslynn.
   com:110 (pop3) Connecting via Socket Socket: mail.tmmslynn.com:110 Socket error:
   0 – socket read (1) :+OK Dovecot ready. socket write: STLS socket read (1) :+
   OK Begin TLS negotiation now. Error establishing secure connection
 *  [BrianTokyo](https://wordpress.org/support/users/briantokyo/)
 * (@briantokyo)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/error-establishing-a-secure-connection/#post-8334742)
 * Try to set mail server to “box6069.bluehost.com”

Viewing 15 replies - 1 through 15 (of 29 total)

1 [2](https://wordpress.org/support/topic/error-establishing-a-secure-connection/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/error-establishing-a-secure-connection/page/2/?output_format=md)

The topic ‘error establishing a secure connection’ is closed to new replies.

 * ![](https://ps.w.org/postie/assets/icon-256x256.png?rev=970083)
 * [Postie](https://wordpress.org/plugins/postie/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/postie/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/postie/)
 * [Active Topics](https://wordpress.org/support/plugin/postie/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/postie/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/postie/reviews/)

 * 29 replies
 * 5 participants
 * Last reply from: [tmmslynn](https://wordpress.org/support/users/tmmslynn/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/error-establishing-a-secure-connection/page/2/#post-8338488)
 * Status: resolved