bkaankose / Wino-Mail

Built-in Mail & Calendars app clone for Windows.
https://www.winomail.app/
GNU General Public License v3.0
655 stars 30 forks source link

[Bug] Can't connect to server #391

Open SnowmanDK opened 1 week ago

SnowmanDK commented 1 week ago

I have just bought the license for this, so I could add all my 8 mail accounts. Apparently there is a problem with logging into my own server (hMailServer on Windows). I have AquaMail and Outlook on Android that can log in... I have Thunderbird, Windows Mail and Windows outlook that can log in... I have friends using Apple phones that can log in... AND I have run a mailserver for about 2 decades, so I DO know what I am doing. I have tried several different settings with ALL 5 mail accounts in the app, but they all throw the same errors.

If I don't add any ports (I assumed it used default ports by default), then I get this:

Connection Failed

IMAP Client Pool failed. The input string '' was not in the correct format.

Then I tried with IMAP:993 and SMTP:465. Connection security and Authentication method both on Auto:

Connection Failed

IMAP Client Pool failed. Invalid user name or password.

Protocol Log (real server name replaced): Connected to imaps://myserver.srv:993/ S: OK IMAPrev1 C: U00000000 CAPABILITY S: CAPABILITY IMAP4 IMAP4rev1 CHILDREN IDLE QUOTA SORT ACL NAMESPACE RIGHTS=texk S: U00000000 OK CAPABILITY completed C: U00000001 LOGIN **** {52} S: + Ready for additional command text. C: **** S: U00000001 NO Invalid user name or password.

The settings below works on Thunderbird IMAP:993 and SMTP:465. Connection security Auto and Authentication method Normal password:

Connection Failed

IMAP Client Pool failed. Authentication failed.

Protocol Log (real server name replaced): Connected to imaps://myserver.srv:993/ S: OK IMAPrev1 C: W00000000 CAPABILITY S: CAPABILITY IMAP4 IMAP4rev1 CHILDREN IDLE QUOTA SORT ACL NAMESPACE RIGHTS=texk S: W00000000 OK CAPABILITY completed C: W00000001 AUTHENTICATE PLAIN S: W00000001 NO Unsupported authentication mechanism.

I can log on to my Google accounts, although I already had the first forced shutdown of the app within 1 minute. Also, then new mails arrive in one of the linked accounts, then it just shows a number, telling there are one or more mails in the Inbox, but the mails are not showing in the listing.... It stays blank until I click somewhere else, and then click on the Inbox again...

SnowmanDK commented 1 week ago

I just realized, that on my Google accounts I only use international characters, while on those on my own server I use national danish characters too (æøåÆØÅ). It is the following characters from the UTF-8 table I am talking about. Last () contains the encoded byte: LATIN SMALL LETTER AE (U+00E6) (c3a6) LATIN CAPITAL LETTER AE (U+00C6) (c386) LATIN SMALL LETTER O WITH STROKE (U+00F8) (c3b8) LATIN CAPITAL LETTER O WITH STROKE (U+00D8) (c398) LATIN SMALL LETTER A WITH RING ABOVE (U+00E5) (c3a5) LATIN CAPITAL LETTER A WITH RING ABOVE (U+00C5) (c385) Does it not support full UTF-8 character set?

bkaankose commented 5 days ago

1- Default ports were not used in the advanced imap setup dialog, next update will have them back. 2- Issue with new mails don't show up in the linked inbox issue has been fixed for the next update. 3- Regarding the authenticating the local server;

C: W00000001 AUTHENTICATE PLAIN S: W00000001 NO Unsupported authentication mechanism.

sounds like PLAIN mechanism is unsupported for your server somehow... I checked hMailServer and by default looks like it supports PLAIN, so there has to be something else going wrong here.

For the next update I'm improving additional protocol logs for IMAP setup, which may help us to diagnose this better.

SnowmanDK commented 5 days ago

That's why I tried this instead: IMAP:993 and SMTP:465. Connection security and Authentication method both on Auto:

Connection Failed IMAP Client Pool failed. Invalid user name or password.

Protocol Log (real server name replaced): Connected to imaps://myserver.srv:993/ S: OK IMAPrev1 C: U00000000 CAPABILITY S: CAPABILITY IMAP4 IMAP4rev1 CHILDREN IDLE QUOTA SORT ACL NAMESPACE RIGHTS=texk S: U00000000 OK CAPABILITY completed C: U00000001 LOGIN **** {52} S: + Ready for additional command text. C: **** S: U00000001 NO Invalid user name or password.

This is the reason why I asked about support for natational character support in the passwords in my previous post. Also note that today we can even get domain names that contains æøÆØÅ.

bkaankose commented 5 days ago

I found this issue from the MailKit repo. Default encoding for Wino is set to UTF8 by default.

If your server requires different encoding, I can add an option to change default encoding type for credential usage for authentication.

I tried to setup my own local server with hMailServer with Danish characters as well and was never successful authenticating. However, I had those characters in my account name (æøåÆØÅ@burakserver.com) I got no username-password match error as well.

This issue requires more investigation done unfortunately. Let's keep the issue open for now.