Author Topic: Force IMAP to use "login" authentication?  (Read 1852 times)

HippoMan

  • Newbie
  • *
  • Posts: 15
Force IMAP to use "login" authentication?
« on: October 23, 2017, 10:13:05 pm »
My IMAP server is a dovecot server, and it offers the "PLAIN" and "LOGIN" authentication mechanisms.
What Incoming Server IMAP settings should I use in AquaMail to force the authentication to be done via the "LOGIN" mechanism? It's unclear whether to use "Choose automatically" or "Prefer compatibility"?

That IMAP server has intermittent problems with SSL and TLS, so I have to use the "Not encrypted" Security type. I want to force the "LOGIN" mechanism, because at least the password won't be sent in plain text.

Also, is there any documentation as to what the actual algorithms are for "Choose automatically" and "Prefer compatibility", so I can understand which one of these I should select for any given IMAP server I might want to use?

Thank you in advance.




Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Force IMAP to use "login" authentication?
« Reply #1 on: October 24, 2017, 08:25:31 pm »
"Prefer compatibility" forces the "old fashioned" LOGIN (not SASL PLAIN).

Re:  I want to force the "LOGIN" mechanism, because at least the password won't be sent in plain text.

Not true. Both "LOGIN" and "SASL PLAIN" send the password as clear text or base64 encoded clear text. Zero security.

Re: Also, is there any documentation as to what the actual algorithms are for "Choose automatically" and "Prefer compatibility", so I can understand which one of these I should select for any given IMAP server I might want to use?

IMAP:

- Prefer compat -> old-fashioned "LOGIN" command

- Automatic -> ask the server (CAPABILITY command) -> SASL PLAIN if available -> SASL MD5 if available -> old-fashoned "LOGIN" as fallback

SMTP:

- Automatic -> ask the server (EHLO command) -> SASL MD5 if the only one advertised by the server -> SASL PLAIN -> SASL LOGIN (which for SMTP is same as "old fashioned" LOGIN)

- And then there is a drop-down to select a specific method

---

The auth method which does *not* send the password, at all, is CRAM-MD5.

The app will use it for IMAP if:

1) the setting is automatic and 2) it's the only advertised login method

... will use it for SMTP if

1) the setting is automatic and 2) it's advertised
OR if
the setting is SASL CRAM-MD5

---

PS - I've got a Dovecot server on Debian Jessie, don't use it much, but never ever had any trouble with logins or SSL/TLS being unreliable... FWIW....
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

HippoMan

  • Newbie
  • *
  • Posts: 15
Re: Force IMAP to use "login" authentication?
« Reply #2 on: October 24, 2017, 09:38:26 pm »
Thank you for correcting my misunderstanding about LOGIN, and I especially thank you for explaining the algorithms used for "Choose automatically" and "Prefer compatibility".