• Resolved theheavenlyhash

    (@theheavenlyhash)


    I’m using a wpengine server and having the following errors when trying to use postie to connect to an imap outlook.office365.com account. I have verified that the login details and ports are correct but still having issues when trying to connect either via sockets or cURL

    When I user curl I get the following error:
    Unable to connect. The server said: Unable to write data to IMAP server outlook.office365.com on port 993

    Postie Version: 1.8.26
    
    Wordpress Version: 4.7.1
    
    PHP Version: 5.5.9-1ubuntu4.20
    
    OS: Linux pod-110639 3.13.0-107-generic #154-Ubuntu SMP Tue Dec 20 09:57:27 UTC 2016 x86_64
    
    POSTIE_DEBUG: On
    
    Error log: /var/log/apache2/timex.error.log
    
    TMP dir: /tmp/
    
    Postie is in /nas/content/live/timex/wp-content/plugins/postie/
    
    cURL version: 7.35.0
    
    Cron: On
    
    Alternate Cron: Off
    
    Clock
    
    This shows what time it would be if you posted right now
    
    Wordpress timezone: America/New_York (-5)
    
    Current time: 2017-01-26 11:04:24
    
    Current time (gmt): 2017-01-26 16:04:24
    
    Postie time correction: -5
    
    Post time: 2017-01-26 11:04:19
    
    Encoding
    
    default_charset: 
    
    DB_CHARSET: utf8
    
    DB_COLLATE: utf8_unicode_ci
    
    WordPress encoding: UTF-8
    
    Postie encoding: UTF-8
    
    Connect to Mail Host
    
    Postie connection: curl
    
    Postie protocol: imap-ssl
    
    Postie server: outlook.office365.com
    
    Postie port: 993
    
    Connecting via cURL
    
    Array
    (
        [version_number] => 467712
        [age] => 3
        [features] => 50877
        [ssl_version_number] => 0
        [version] => 7.35.0
        [host] => x86_64-pc-linux-gnu
        [ssl_version] => OpenSSL/1.0.1f
        [libz_version] => 1.2.8
        [protocols] => Array
            (
                [0] => dict
                [1] => file
                [2] => ftp
                [3] => ftps
                [4] => gopher
                [5] => http
                [6] => https
                [7] => imap
                [8] => imaps
                [9] => ldap
                [10] => ldaps
                [11] => pop3
                [12] => pop3s
                [13] => rtmp
                [14] => rtsp
                [15] => smtp
                [16] => smtps
                [17] => telnet
                [18] => tftp
            )
    
    )
    
    curl write: imaps://outlook.office365.com/INBOX - STATUS "INBOX" (MESSAGES)
    
    curl return: 
    
    curl:
    
    curl log: * Hostname was NOT found in DNS cache
    *   Trying 40.96.30.98...
    * Connected to outlook.office365.com (40.96.30.98) port 993 (#1)
    * successfully set certificate verify locations:
    *   CAfile: none
      CApath: /etc/ssl/certs
    * SSL connection using ECDHE-RSA-AES256-SHA384
    * Server certificate:
    * 	 subject: C=US; ST=WASHINGTON; L=Redmond; O=Microsoft Corporation; CN=outlook.com
    * 	 start date: 2016-12-12 00:00:00 GMT
    * 	 expire date: 2017-12-12 12:00:00 GMT
    * 	 issuer: C=US; O=DigiCert Inc; CN=DigiCert Cloud Services CA-1
    * 	 SSL certificate verify ok.
    < * OK The Microsoft Exchange IMAP4 service is ready. [UwBOADEAUABSADAAMQBDAEEAMAAwADAAMQAuAHAAcgBvAGQALgBlAHgAYwBoAGEAbgBnAGUAbABhAGIAcwAuAGMAbwBtAA==]
    > B001 CAPABILITY
    < * CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN AUTH=XOAUTH2 SASL-IR UIDPLUS MOVE ID UNSELECT CHILDREN IDLE NAMESPACE LITERAL+
    < B001 OK CAPABILITY completed.
    > B002 AUTHENTICATE PLAIN cG9zdEB0aW1leGdyb3VwLmNvbQBwb3N0QHRpbWV4Z3JvdXAuY29tAFI5dHkyV29r
    * Operation timed out after 0 milliseconds with 0 out of 0 bytes received
    > B003 LOGOUT
    * server response timeout
    * Closing connection 1
    
    Curl: error - Operation timed out after 0 milliseconds with 0 out of 0 bytes received (28)
    
    Unable to connect. The server said: Unable to write data to IMAP server outlook.office365.com on port 993

    When I connect via SOCKETS I get the following error:
    Unable to connect. The server said: The username and password provided were not accepted for the IMAP server outlook.office365.com on port 993

    Postie Version: 1.8.26
    
    Wordpress Version: 4.7.1
    
    PHP Version: 5.5.9-1ubuntu4.20
    
    OS: Linux pod-110639 3.13.0-107-generic #154-Ubuntu SMP Tue Dec 20 09:57:27 UTC 2016 x86_64
    
    POSTIE_DEBUG: On
    
    Error log: /var/log/apache2/timex.error.log
    
    TMP dir: /tmp/
    
    Postie is in /nas/content/live/timex/wp-content/plugins/postie/
    
    cURL version: 7.35.0
    
    Cron: On
    
    Alternate Cron: Off
    
    Clock
    
    This shows what time it would be if you posted right now
    
    Wordpress timezone: America/New_York (-5)
    
    Current time: 2017-01-26 11:05:41
    
    Current time (gmt): 2017-01-26 16:05:41
    
    Postie time correction: -5
    
    Post time: 2017-01-26 11:05:36
    
    Encoding
    
    default_charset: 
    
    DB_CHARSET: utf8
    
    DB_COLLATE: utf8_unicode_ci
    
    WordPress encoding: UTF-8
    
    Postie encoding: UTF-8
    
    Connect to Mail Host
    
    Postie connection: sockets
    
    Postie protocol: imap-ssl
    
    Postie server: outlook.office365.com
    
    Postie port: 993
    
    Connecting via Socket
    
    Socket: tls://outlook.office365.com:993
    
    Socket error: 0 - 
    
    socket write: A0001 CAPABILITY
    
    socket read (3) :* OK The Microsoft Exchange IMAP4 service is ready. [UwBOADEAUABSADAAMQBDAEEAMAAwADMAMQAuAHAAcgBvAGQALgBlAHgAYwBoAGEAbgBnAGUAbABhAGIAcwAuAGMAbwBtAA==]
    
    socket write: (login)
    
    socket read (0) :
    
    Unable to connect. The server said: The username and password provided were not accepted for the IMAP server outlook.office365.com on port 993
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter theheavenlyhash

    (@theheavenlyhash)

    I’ve been speaking with wpengine.com to see if this had to do with any server settings, and it seems to be the case.

    WPengine blocks port 995, and would require the plugin to use port 2525.

    Does anyone know if you can change the port for outlook.office365.com to 2525?

    Thread Starter theheavenlyhash

    (@theheavenlyhash)

    Another update. Just to confirm. I’ve tried the plugin on a hostgator server and the connection works as expected. So it’s definitly the blocked 995 port. Hoping someone knows if I can change office365 connection port.

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Thanks for letting us know.

    Thread Starter theheavenlyhash

    (@theheavenlyhash)

    One last update…

    for anyone that wants to continue using wpengine, use rackspace as an email host and you’ll be able to use port 993

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Unable to Connect : outlook.office365.com & WPENGINE’ is closed to new replies.