#1842 ✓fixreleased
Tom Dietel

IMAP problem with office365

Reported by Tom Dietel | September 27th, 2017 @ 09:27 AM

Hello,

I have problems with Mailmate connecting to my university's office365 mail server. Every few minutes, a window pops up complaining about an "unexpected end tag", and I have to click "retry".

The log file from the activity viewer is attached.

Please help,
- Tom.

09:20:46 S: C0 OK CAPABILITY completed.
09:20:46 Retrieving password (keychain or user request)
09:20:46 C: C1 AUTHENTICATE PLAIN ••••••••••
09:21:02 S:
09:21:02 Retrieving password (keychain or user request)
09:21:02 C: C2 LOGIN ••••••••••
09:21:10 S: C1 OK AUTHENTICATE completed.
09:21:10 Error: Unexpected end tag, 'C1', while expecting 'C2'
09:21:10 Error code: 1015
09:21:10 Failed action (1002). Reset observed read/write timeouts: 8/8

09:21:10 Handling reply
09:21:14 Running action
09:21:14 Sending request (59)
09:21:14 Handling request
09:21:14 Trying to disconnect nicely (8)...
09:21:14 C: C3 LOGOUT
09:21:14 S: C2 BAD Command received in Invalid state.
09:21:15 S: * BYE Microsoft Exchange Server 2016 IMAP4 server signing off.
09:21:15 S: C3 OK LOGOUT completed.
09:21:15 Clearing connection to outlook.office365.com
09:21:18 Ready to run action (retry count: 3)
09:21:18 Synchronizing mailbox: INBOX
09:21:18 Selecting mailbox: INBOX
09:21:18 Clearing connection to outlook.office365.com
09:21:18 Trying to connect to outlook.office365.com on port 993 (CFNetwork) without STARTTLS (required)
09:21:18 Resolved hostname (outlook.office365.com).
09:21:18 Prepare secure connection...
09:21:18 Successful connection.
09:21:18 Initiating secure connection...
09:21:19 Returned (4)...
09:21:19 Protocol version: kTLSProtocol12
09:21:19 S: * OK The Microsoft Exchange IMAP4 service is ready. [RABCADYAUABSADAANwBDAEEAMAAwADAAMQAuAGUAdQByAHAAcgBkADAANwAuAHAAcgBvAGQALgBvAHUAdABsAG8AbwBrAC4AYwBvAG0A]
09:21:19 C: C0 CAPABILITY
09:21:19 S: * CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN AUTH=XOAUTH2 SASL-IR UIDPLUS MOVE ID UNSELECT CHILDREN IDLE NAMESPACE LITERAL+
09:21:19 S: C0 OK CAPABILITY completed.
09:21:19 Retrieving password (keychain or user request)
09:21:19 C: C1 AUTHENTICATE PLAIN ••••••••••
09:21:35 S:
09:21:35 Retrieving password (keychain or user request)
09:21:35 C: C2 LOGIN ••••••••••
09:21:42 S: C1 OK AUTHENTICATE completed.
09:21:42 Error: Unexpected end tag, 'C1', while expecting 'C2'
09:21:42 Error code: 1015
09:21:42 Failed action (1002). Reset observed read/write timeouts: 8/8

09:21:42 Handling reply
09:21:45 Running action
09:21:45 Sending request (57)
09:21:45 Handling request
09:21:45 Trying to disconnect nicely (8)...
09:21:45 C: C3 LOGOUT
09:21:45 S: C2 BAD Command received in Invalid state.
09:21:46 S: * BYE Microsoft Exchange Server 2016 IMAP4 server signing off.
09:21:46 S: C3 OK LOGOUT completed.
09:21:46 Clearing connection to outlook.office365.com
09:21:49 Ready to run action (retry count: 3)
09:21:49 Synchronizing mailbox: INBOX
09:21:49 Selecting mailbox: INBOX
09:21:49 Clearing connection to outlook.office365.com
09:21:49 Trying to connect to outlook.office365.com on port 993 (CFNetwork) without STARTTLS (required)
09:21:49 Resolved hostname (outlook.office365.com).
09:21:49 Prepare secure connection...
09:21:49 Successful connection.
09:21:49 Initiating secure connection...
09:21:50 Returned (4)...
09:21:50 Protocol version: kTLSProtocol12
09:21:50 S: * OK The Microsoft Exchange IMAP4 service is ready. [RABCADYAUABSADAAOAAwADIAQwBBADAAMAA0ADgALgBlAHUAcgBwAHIAZAAwADgALgBwAHIAbwBkAC4AbwB1AHQAbABvAG8AawAuAGMAbwBtAA==]
09:21:50 C: C0 CAPABILITY
09:21:50 S: * CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN AUTH=XOAUTH2 SASL-IR UIDPLUS ID UNSELECT CHILDREN IDLE NAMESPACE LITERAL+
09:21:50 S: C0 OK CAPABILITY completed.
09:21:50 Retrieving password (keychain or user request)
09:21:50 C: C1 AUTHENTICATE PLAIN ••••••••••
09:22:06 S:
09:22:06 Retrieving password (keychain or user request)
09:22:06 C: C2 LOGIN ••••••••••
09:22:13 S: C1 OK AUTHENTICATE completed.
09:22:13 Error: Unexpected end tag, 'C1', while expecting 'C2'
09:22:13 Error code: 1015
09:22:13 Failed action (1002). Reset observed read/write timeouts: 8/8

09:22:13 Handling reply
09:22:33 Running action
09:22:33 Sending request (60)
09:22:33 Handling request
09:22:33 Trying to disconnect nicely (8)...
09:22:33 C: C3 LOGOUT
09:22:33 S: C2 BAD Command received in Invalid state.
09:22:33 S: * BYE Microsoft Exchange Server 2016 IMAP4 server signing off.
09:22:33 S: C3 OK LOGOUT completed.
09:22:33 Clearing connection to outlook.office365.com
09:22:36 Ready to run action (retry count: 3)
09:22:36 Synchronizing mailbox: INBOX
09:22:36 Selecting mailbox: INBOX
09:22:36 Clearing connection to outlook.office365.com
09:22:36 Trying to connect to outlook.office365.com on port 993 (CFNetwork) without STARTTLS (required)
09:22:36 Resolved hostname (outlook.office365.com).
09:22:36 Prepare secure connection...
09:22:36 Successful connection.
09:22:36 Initiating secure connection...
09:22:37 Returned (4)...
09:22:37 Protocol version: kTLSProtocol12
09:22:37 S: * OK The Microsoft Exchange IMAP4 service is ready. [RABCADYAUABSADAAMwAwADEAQwBBADAAMAAwADkALgBlAHUAcgBwAHIAZAAwADMALgBwAHIAbwBkAC4AbwB1AHQAbABvAG8AawAuAGMAbwBtAA==]
09:22:37 C: C0 CAPABILITY
09:22:38 S: * CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN AUTH=XOAUTH2 SASL-IR UIDPLUS MOVE ID UNSELECT CHILDREN IDLE NAMESPACE LITERAL+
09:22:38 S: C0 OK CAPABILITY completed.
09:22:38 Retrieving password (keychain or user request)
09:22:38 C: C1 AUTHENTICATE PLAIN ••••••••••

Comments and changes to this ticket

  • Tom Dietel

    Tom Dietel September 27th, 2017 @ 09:30 AM

    Looking at the log file, it seems as if Mailmate sends a C2 LOGIN before the server sends the response to C1 AUTHENTICATE.

  • benny

    benny September 27th, 2017 @ 09:32 AM

    Yes, this appears to be a MailMate bug. I think maybe MailMate times out before receiving the response and due to a workaround for various server bugs (including for Outlook) it quickly retries with a different authentication method. It should, instead, increase the timeout value. I'll look into this.

    (You might not see the issue when the server is less busy.)

  • benny

    benny September 27th, 2017 @ 09:41 AM

    Hold down ⌥ when clicking “Check Now” in the Software Update preferences pane to fetch a test release (r5421). Then send me new logs if the issue persists.

    Thanks in advance.

  • Tom Dietel

    Tom Dietel September 29th, 2017 @ 10:05 AM

    It seems the fix worked, and I guess we can close the ticket. I have not had any messages in the last two days.

    Thanks for the quick response,
    - Tom.

  • benny

    benny September 29th, 2017 @ 10:06 AM

    • State changed from “new” to “fixcommitted”

    Ok, let me know if it returns.

  • benny

    benny October 21st, 2017 @ 03:32 PM

    • State changed from “fixcommitted” to “fixreleased”

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Mac OS X email client.

Shared Ticket Bins

People watching this ticket

Pages