FS#64671 - neomutt imap_authenticators problem

Attached to Project: Community Packages
Opened by Pavel Cina (pc-linux) - Thursday, 28 November 2019, 06:59 GMT
Last edited by Maxim Baz (maximbaz) - Sunday, 09 February 2020, 16:55 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jelle van der Waa (jelly)
Alad Wenter (Alad)
Maxim Baz (maximbaz)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hello,

having imap_authenticators set to "login" tries neomutt to connect to imap
with "PLAIN", "NTLM", "LOGIN" and at the end with login. So it fails 3
times before it connects successfully. Why?
It worked well before the update.

It tries to connect to imap even if I only want to list all my settings:
$ neomutt -D | grep imap
Anmeldung gescheitert <-- Authentication failed
Anmeldung gescheitert <-- Authentication failed
Keine Authentifizierung oder ausreichende Berechtigung verfügbar
set folder = "imaps://G02\\yyyyyy@imap4.xxxxx.local:993/"
set imap_authenticators = "login"
set imap_check_subscribed = no
set imap_condstore = no
set imap_delim_chars = "/."
set imap_fetch_chunk_size = 0
set imap_headers = ""
set imap_idle = no
set imap_keepalive = 900
set imap_list_subscribed = no
set imap_login = ""
set imap_oauth_refresh_command = ""
set imap_pass = "***********"
set imap_passive = no
set imap_peek = yes
set imap_pipeline_depth = 15
set imap_poll_timeout = 15
set imap_qresync = no
set imap_rfc5161 = yes
set imap_servernoise = yes
set imap_user = "G02\\yyyyyy"
set postponed = "imaps://G02\\yyyyyy@imap4.xxxxx.local:993/Entwürfe"
set record = "imaps://G02\\yyyyyy@imap4.xxxxx.local:993/Gesendete Elemente"
set spoolfile = "imaps://G02\\yyyyyy@imap4.xxxxx.local:993/INBOX"
set trash = "imaps://G02\\yyyyyy@imap4.xxxxx.local:993/Gelöschte Elemente"


Regards
Pavel




[2019-11-27 09:40:01] NeoMutt-20191111 debugging at level 2
[2019-11-27 09:40:01]<M> log_file_open() Schreibe Fehlersuche der Stufe 2 nach Datei '/home/pavel/.neomuttdebug0'
[2019-11-27 09:40:01]<2> mutt_window_reflow() entering
[2019-11-27 09:40:01]<2> source_rc() Reading configuration file '/etc/neomuttrc'
[2019-11-27 09:40:01]<2> source_rc() Reading configuration file '/home/pavel/.config/mutt/muttrc'
[2019-11-27 09:40:01]<M> raw_socket_open() Schlage imap4.xxxxx.local nach...
[2019-11-27 09:40:01]<M> raw_socket_open() Verbinde zu imap4.xxxxx.local...
[2019-11-27 09:40:01]<2> ssl_load_certificates() loading trusted certificates
[2019-11-27 09:40:01]<1> ssl_verify_callback() checking cert chain entry /O=ffffff/OU=ffffff/CN=Ffffffff Internal Root CA - G1 (preverify: 1 skipmode: 0)
[2019-11-27 09:40:01]<1> ssl_verify_callback() checking cert chain entry /O=ffffff/OU=ffffff/CN=Ffffffff Internal Issuing CA EMEIA - G1 (preverify: 1 skipmode: 0)
[2019-11-27 09:40:01]<1> ssl_verify_callback() checking cert chain entry /C=GB/ST=England/L=London/O=Ffffffff Services/OU=ITG/CN=oa.xxxxx.local (preverify: 1 skipmode: 0)
[2019-11-27 09:40:01]<2> ssl_verify_callback() hostname check passed
[2019-11-27 09:40:01]<2> mutt_socket_open() Connected to imap4.xxxxx.local:993 on fd=5
[2019-11-27 09:40:01]<2> mutt_socket_write_d() 5> a0000 CAPABILITY
[2019-11-27 09:40:01]<2> imap_authenticate() Trying pre-defined imap_authenticators
[2019-11-27 09:40:01]<M> imap_auth_plain() Anmeldung...
[2019-11-27 09:40:01]<2> mutt_socket_write_d() 5> a0001 AUTHENTICATE PLAIN
[2019-11-27 09:40:01]<2> mutt_socket_write_d() 5> RzAyXENpbmFQYQBHMDJcQ2luYVBhAEplc2VuMjIwMTkh
[2019-11-27 09:40:01]<E> imap_auth_plain() Anmeldung gescheitert
[2019-11-27 09:40:01]<2> mutt_sasl_client_new() SASL local ip: 192.168.112.129;45234, remote ip:10.182.185.154;993
[2019-11-27 09:40:01]<2> mutt_sasl_client_new() External SSF: 256
[2019-11-27 09:40:01]<2> mutt_sasl_client_new() External authentication name: G02\yyyyyy
[2019-11-27 09:40:01]<M> imap_auth_sasl() Authentifiziere (NTLM)...
[2019-11-27 09:40:01]<2> mutt_socket_write_d() 5> a0002 AUTHENTICATE NTLM
[2019-11-27 09:40:01]<2> mutt_socket_write_d() 5> TlRMTVNTUAABAAAABwIAAAAAAAAgAAAAAAAAACAAAAA=
[2019-11-27 09:40:02]<2> mutt_sasl_cb_authname() getting authname for imap4.xxxxx.local:993
[2019-11-27 09:40:02]<2> mutt_sasl_cb_pass() getting password for G02\yyyyyy@imap4.xxxxx.local:993
[2019-11-27 09:40:02]<2> mutt_socket_write_d() 5> TlRMTVNTUAADAAAAAAAAAEAAAAAYABgAQAAAAAYABgBYAAAAFAAUAF4AAAAAAAAAcgAAAAAAAAByAAAABQIAAFYFX5qZylpOVhHXlJSuGy+UJkGuzruDE1IAMAAxAEcAMAAyAFwAQwBpAG4AYQBQAGEA
[2019-11-27 09:40:02]<2> imap_auth_sasl() IMAP4 IMAP4rev1 AUTH=PLAIN AUTH=NTLM AUTH=GSSAPI UIDPLUS ID CHILDREN IDLE NAMESPACE LITERAL+ failed
[2019-11-27 09:40:02]<2> imap_auth_gss() Using service name [imap@imap4.xxxxx.local]
[2019-11-27 09:40:07]<2> print_gss_error() ((nicht spezifizierter GSS-Fehlschlag. Möglicherweise stellt der untergeordnete Code weitere Informationen bereit.:851968 )(No Kerberos credentials available (default cache: FILE:/tmp/krb5cc_1000):-1765328243))
[2019-11-27 09:40:07]<1> imap_auth_gss() Error acquiring credentials - no TGT?
[2019-11-27 09:40:07]<M> imap_auth_login() Anmeldung...
[2019-11-27 09:40:07]<2> imap_auth_login() Sending LOGIN command for G02\yyyyyy
[2019-11-27 09:40:07]<E> imap_auth_login() Anmeldung gescheitert
[2019-11-27 09:40:07]<E> imap_authenticate() Keine Authentifizierung oder ausreichende Berechtigung verfügbar
[2019-11-27 09:40:07]<2> source_rc() Reading configuration file '/home/pavel/.config/mutt/colors.muttrc'
[2019-11-27 09:40:07]<2> source_rc() Reading configuration file '/home/pavel/.config/mutt/aliases'
[2019-11-27 09:40:08]<M> raw_socket_open() Schlage imap4.xxxxx.local nach...
[2019-11-27 09:40:09]<M> raw_socket_open() Verbinde zu imap4.xxxxx.local...
[2019-11-27 09:40:09]<2> ssl_load_certificates() loading trusted certificates
[2019-11-27 09:40:09]<1> ssl_verify_callback() checking cert chain entry /O=ffffff/OU=ffffff/CN=Ffffffff Internal Root CA - G1 (preverify: 1 skipmode: 0)
[2019-11-27 09:40:09]<1> ssl_verify_callback() checking cert chain entry /O=ffffff/OU=ffffff/CN=Ffffffff Internal Issuing CA EMEIA - G1 (preverify: 1 skipmode: 0)
[2019-11-27 09:40:09]<1> ssl_verify_callback() checking cert chain entry /C=GB/ST=England/L=London/O=Ffffffff Services/OU=ITG/CN=oa.xxxxx.local (preverify: 1 skipmode: 0)
[2019-11-27 09:40:09]<2> ssl_verify_callback() hostname check passed
[2019-11-27 09:40:09]<2> mutt_socket_open() Connected to imap4.xxxxx.local:993 on fd=4
[2019-11-27 09:40:09]<2> mutt_socket_write_d() 4> b0000 CAPABILITY
[2019-11-27 09:40:09]<2> imap_authenticate() Trying user-defined imap_authenticators
[2019-11-27 09:40:09]<2> imap_authenticate() Trying method login
[2019-11-27 09:40:09]<2> mutt_sasl_client_new() SASL local ip: 192.168.112.129;33596, remote ip:10.183.43.210;993
[2019-11-27 09:40:09]<2> mutt_sasl_client_new() External SSF: 256
[2019-11-27 09:40:09]<2> mutt_sasl_client_new() External authentication name: G02\yyyyyy
[2019-11-27 09:40:09]<M> imap_auth_login() Anmeldung...
[2019-11-27 09:40:09]<2> imap_auth_login() Sending LOGIN command for G02\yyyyyy
[2019-11-27 09:40:09]<2> imap_login() Communication encrypted at 256 bits
[2019-11-27 09:40:09]<2> mutt_socket_write_d() 4> b0002 CAPABILITY
b0003 LIST "" ""
[2019-11-27 09:40:09]<M> mx_mbox_open() Leseyyyyyy@imap4.xxxxx.local:993/INBOX"> imaps://G02\yyyyyy@imap4.xxxxx.local:993/INBOX...
[2019-11-27 09:40:09]<M> imap_mbox_open() Wähle INBOX aus...
[2019-11-27 09:40:09]<2> mutt_socket_write_d() 4> b0004 SELECT "INBOX"
[2019-11-27 09:40:10]<2> cmd_parse_exists() Handling EXISTS
[2019-11-27 09:40:10]<2> cmd_parse_exists() New mail in INBOX - 3955 messages total
[2019-11-27 09:40:10]<2> mutt_socket_write_d() 4> b0005 UID FETCH 1:20871 (UID FLAGS)
[2019-11-27 09:40:10]<2> imap_mbox_open() msg_count is 3955
[2019-11-27 09:40:10]<M> mutt_sort_headers() Sortiere Mailbox...
[2019-11-27 09:40:10]<2> mutt_window_reflow() entering
[2019-11-27 09:40:10]<2> mutt_socket_write_d() 4> b0006 STATUS "Entw&APw-rfe" (UIDNEXT UIDVALIDITY UNSEEN RECENT MESSAGES)
[2019-11-27 09:40:12]<M> mx_mbox_close() 3955 behalten, 0 gelöscht
[2019-11-27 09:40:12]<1> mutt_body_free() not unlinking smime.p7m
[2019-11-27 09:40:12]<1> mutt_body_free() not unlinking smime.p7m
[2019-11-27 09:40:12]<1> mutt_body_free() not unlinking smime.p7m
[2019-11-27 09:40:12]<1> mutt_body_free() not unlinking smime.p7m
[2019-11-27 09:40:12]<1> mutt_body_free() not unlinking smime.p7m
[2019-11-27 09:40:12]<1> mutt_body_free() not unlinking smime.p7m
[2019-11-27 09:40:12]<1> mutt_body_free() not unlinking smime.p7m
[2019-11-27 09:40:12]<1> mutt_body_free() not unlinking smime.p7m
[2019-11-27 09:40:12]<1> mutt_body_free() not unlinking smime.p7m
[2019-11-27 09:40:12]<1> mutt_body_free() not unlinking smime.p7m
[2019-11-27 09:40:12]<M> imap_logout_all() Beende Verbindung zu imap4.xxxxx.local...
[2019-11-27 09:40:12]<2> mutt_socket_write_d() 4> b0007 CLOSE
b0008 LOGOUT
[2019-11-27 09:40:12]<2> cmd_handle_untagged() Handling BYE
[2019-11-27 09:40:08]<M> raw_socket_open() Schlage imap4.xxxxx.local nach...
[2019-11-27 09:40:09]<M> raw_socket_open() Verbinde zu imap4.xxxxx.local...
[2019-11-27 09:40:09]<M> imap_auth_login() Anmeldung...
[2019-11-27 09:40:09]<M> mx_mbox_open() Leseyyyyyy@imap4.xxxxx.local:993/INBOX"> imaps://G02\yyyyyy@imap4.xxxxx.local:993/INBOX...
[2019-11-27 09:40:09]<M> imap_mbox_open() Wähle INBOX aus...
[2019-11-27 09:40:10]<M> mutt_sort_headers() Sortiere Mailbox...
[2019-11-27 09:40:12]<M> mx_mbox_close() 3955 behalten, 0 gelöscht
[2019-11-27 09:40:12]<M> imap_logout_all() Beende Verbindung zu imap4.xxxxx.local...
[2019-11-27 09:40:12] Closing log.



$ pacman -Qi neomutt
Name : neomutt
Version : 20191111-1
Beschreibung : A version of mutt with added features
Architektur : x86_64
URL : https://neomutt.org/
Lizenzen : GPL
Gruppen : Nichts
Stellt bereit : Nichts
Hängt ab von : glibc gpgme lua notmuch-runtime krb5 openssl libsasl ncurses libidn2 lmdb gdbm kyotocabinet
Optionale Abhängigkeiten : python: keybase.py [Installiert]
Benötigt von : Nichts
Optional für : Nichts
In Konflikt mit : Nichts
Ersetzt : Nichts
Installationsgröße : 8,21 MiB
Packer : Alad Wenter <alad@archlinux.org>
Erstellt am : Mo 11 Nov 2019 17:08:09 CET


$ uname -a
Linux manjaro18-1-0 5.3.12-1-MANJARO #1 SMP PREEMPT Thu Nov 21 10:55:53 UTC 2019 x86_64 GNU/Linux

This task depends upon

Closed by  Maxim Baz (maximbaz)
Sunday, 09 February 2020, 16:55 GMT
Reason for closing:  No response
Additional comments about closing:  No follow-up
Comment by Maxim Baz (maximbaz) - Tuesday, 10 December 2019, 09:02 GMT
Hey! Neomutt has been having a lot of changes recently, and a lot of bug fixes too! First of all, could you try if you reproduce the issue on the latest version? I wonder if for example https://github.com/neomutt/neomutt/pull/2025 helped with this. If you still can reproduce, could you please open the issue at neomutt's github and share the link here?

If all that happens is some failed connections on startup but eventually you are able to login, I don't think it will warrant to patch arch package, once the fix is available, we should wait for the next release.

Loading...