• Resolved tstang1

    (@tstang1)


    Hello,
    I have been using Postie for the last couple of months without any issues. We recently switched our email server from our website host to Microsoft Office 365 servers. I send emails to the email identified within Postie (same one we always have used) and the email shows up in the Office 365 Outlook inbox, but Postie does not download it. When I look at the response in Postie, it tells me it has the correct email and password but it does not see any messages. I have tried using POP3, IMAP, IMAP-SSL and they all have the same response.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Wayne Allen

    (@wayneallen-1)

    POP3-SSL should work in this case. Sound like the default IMAP folder doesn’t match what Postie uses. If this is the case you can specify an IMAP folder as described here: https://postieplugin.com/1-8-36-released/

    Thank you Wayne. I will try that and see if it works.

    I created a new folder within Outlook called “Postie” and then used the rules to move any message to it. The messages are being moved to it but Postie is now saying there is no folder called “Postie” on the server. Do I need to put something else in front of the Postie so it will find the directory/mail box?

    Connect to Mail Host
    Postie connection: sockets
    Postie protocol: imap-ssl
    Postie server: mail.pekinfirst.org
    Postie port: 993
    pConnection: mailbox: Postie
    Connecting via Socket
    Socket: tls://mail.pekinfirst.org:993
    Socket error: 0 –
    Socket: IMAP
    socket write: A0001 CAPABILITY
    socket read (3) :* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE AUTH=PLAIN] Courier-IMAP ready. Copyright 1998-2005 Double Precision, Inc. See COPYING for distribution information.
    socket write: (login) LOGIN/APOP/PASS
    socket read (1) :A0002 OK LOGIN Ok.
    socket write: A0003 SELECT “Postie”
    socket read (1) :A0003 NO Mailbox does not exist, or must be subscribed to.
    socket write: A0004 STATUS “Postie” (MESSAGES)
    socket read (1) :A0004 NO Mailbox does not exist, or must be subscribed to.
    Successful IMAP-SSL connection on port 993
    # of waiting messages: 0
    socket write: A0005 LOGOUT
    socket read (2) :* BYE Courier-IMAP server shutting down
    Test complete

    Plugin Author Wayne Allen

    (@wayneallen-1)

    What does the debug output look like if you switch to pop-ssl? (remember to remove the folder name)

    • This reply was modified 6 years, 9 months ago by Wayne Allen.

    Postie connection: sockets
    Postie protocol: pop3-ssl
    Postie server: mail.pekinfirst.org
    Postie port: 995
    pConnection: mailbox: INBOX
    Connecting via Socket
    Socket: tls://mail.pekinfirst.org:995
    Socket error: 0 –
    Socket: POP3
    socket read (1) :+OK <[email protected]>
    Socket: attempting a secure connection
    socket write: STLS
    socket read (1) :-ERR STLS not available
    socket write: USER
    socket read (1) :+OK
    socket write: (login) LOGIN/APOP/PASS
    socket read (1) :+OK
    socket write: STAT
    socket read (1) :+OK 0 0
    pop count: +OK 0 0
    Successful POP3-SSL connection on port 995
    # of waiting messages: 0
    socket write: QUIT
    socket read (1) :+OK
    Test complete

    Thread Starter tstang1

    (@tstang1)

    Hello Wayne,
    I was able to talk to Microsoft Support today and asked me to change the domain to outlook.office365.com and now I get the following error. Any ideas on this one?

    Connect to Mail Host
    Postie connection: sockets
    Postie protocol: imap-ssl
    Postie server: outlook.office365.com
    Postie port: 993
    pConnection: mailbox: Postie
    Connecting via Socket
    Socket: tls://outlook.office365.com:993
    Socket error: 101 – Network is unreachable
    Unable to connect. The server said: There was an error connecting to the server Network is unreachable
    Test complete

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Now you get to talk with your hosting company to see if they have any restrictions on outbound connections. Basically this error message is saying “I can’t find outlook.office365.com:993”

    Thread Starter tstang1

    (@tstang1)

    It seems that Postie is trying to use the mail server on the hosting company to resolve the outlook.office365.com IP address. If I use an IP address, I get error 111 – Connection refused. I had to change the DNS settings on the hosting site so Office 365 would work correctly with our domain.
    I don’t think Postie is able to resolve the connection to outlook.office.com after the DNS settings were changed. Any ideas on how to check this?

    Plugin Author Wayne Allen

    (@wayneallen-1)

    You would need shell access to your hosting account. Then see https://postieplugin.com/faq/postie-wont-connect-mailserver/

    Hello Wayne,
    I think I have isolated the problem. Office 365 uses TLS encryption and the only option within Postie is SSL under both pop and imap. Is there a way to add TLS to the encryption type?

    Server name: outlook.office365.com
    Port: 995
    Encryption method: TLS

    Server name: outlook.office365.com
    Port: 993
    Encryption method: TLS

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Postie supports TLS as long as your underling PHP supports it.

    Note the log you posted earlier confirms Postie is trying to connect with TLS

    Socket: tls://outlook.office365.com:993

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Note also that the log posted in https://www.ads-software.com/support/topic/office-365-emails-not-downloading/#post-10384813 shows a successful connection.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Office 365 emails not downloading’ is closed to new replies.