svarshavchik / courier

Courier Mail Server
http://www.courier-mta.org
72 stars 12 forks source link

Cone 1.5 - interop problem with Office365 #39

Closed roelvanmeer closed 2 years ago

roelvanmeer commented 2 years ago

Not a cone issue, but an interoperability problem. I'm testing cone 1.5 against Microsoft Office365, and it (Microsoft) gives me the error "Command Argument Error. 11". Is there a way to have a debug transcription of the IMAP conversation, so I can find out what's going wrong here? Because the connection is encrypted using strace didn't get me anywhere.

An older version (0.96.2) is currently working btw.

roelvanmeer commented 2 years ago

Ah, /debugio is very helpful

roelvanmeer commented 2 years ago

imap-conversation.txt

These are the two debugio transcripts, one from cone 0.96.2 (working) and one with cone 1.5 (not working). Could you perhaps take a quick look and see if there's anything that stands out?

Note that I replaced the backslash r and backslash n with forward slashes, because github didn't want to process the file otherwise.

Thanks a lot! Roel

svarshavchik commented 2 years ago

It looks like in 0.96.2 it's providing a password. Cone 1.5 is sending an empty password, and Office 365 chokes on an empty password.

Wrrite.SSL(4): roel@**** {11}/r/n

That's cone telling Office365 that the password will be sent and it's 11 characters. In the other one:

Write.SSL(4): roel@**** {0}/r/n

That's cone telling Office365 that the password will be sent and it's 0 characters long.

Delete the account and recreate it, making sure to specify a password.

roelvanmeer commented 2 years ago

Eh, I feel stupid now. Sorry for wasting your time.