[neomutt-users] Unable to login to O365

Sadeep Madurange sadeep at asciimx.com
Wed Jan 4 07:31:25 CET 2023


I had successfully setup neomutt with O365 to use based on this post: https://www.vanormondt.net/~peter/blog/2021-03-16-mutt-office365-mfa.html. After a recent change to our domain, I setup auth again by deleting the old token and getting a new token, and updating the imap_user in muttrc. However, neomutt is exiting with "Connection closed. 14". Following is the -d 4 log.
  	
[View original HTML in new window (only use with messages from trusted senders)]
[2023-01-04 14:11:08]<2> mutt_socket_open() Connected to outlook.office365.com:993 on fd=5
[2023-01-04 14:11:08]<3> imap_cmd_step() grew buffer to 512 bytes
[2023-01-04 14:11:08]<3> imap_cmd_step() IMAP queue drained
[2023-01-04 14:11:08]<2> mutt_socket_write_d() 5> a0000 CAPABILITY
[2023-01-04 14:11:08]<3> cmd_parse_capability() Handling CAPABILITY
[2023-01-04 14:11:08]<3> cmd_parse_capability()  Found capability "IMAP4": 0
[2023-01-04 14:11:08]<3> cmd_parse_capability()  Found capability "IMAP4rev1": 1
[2023-01-04 14:11:08]<3> cmd_parse_capability()  Found capability "AUTH=XOAUTH2": 9
[2023-01-04 14:11:08]<3> cmd_parse_capability()  Found capability "SASL-IR": 13
[2023-01-04 14:11:08]<3> cmd_parse_capability()  Found capability "IDLE": 12
[2023-01-04 14:11:08]<3> cmd_parse_capability()  Found capability "NAMESPACE": 4
[2023-01-04 14:11:08]<3> imap_cmd_step() IMAP queue drained
[2023-01-04 14:11:08]<2> imap_authenticate() Trying user-defined imap_authenticators
[2023-01-04 14:11:08]<2> imap_authenticate() Trying method xoauth2
[2023-01-04 14:11:08]<M> imap_auth_oauth_xoauth2() Authenticating (XOAUTH2)...
[2023-01-04 14:11:24]<3> imap_cmd_step() IMAP queue drained
[2023-01-04 14:11:24]<2> imap_login() Communication encrypted at 256 bits
[2023-01-04 14:11:24]<3> cmd_parse_capability() Handling CAPABILITY
[2023-01-04 14:11:24]<3> cmd_parse_capability()  Found capability "IMAP4": 0
[2023-01-04 14:11:24]<3> cmd_parse_capability()  Found capability "IMAP4rev1": 1
[2023-01-04 14:11:24]<3> cmd_parse_capability()  Found capability "AUTH=XOAUTH2": 9
[2023-01-04 14:11:24]<3> cmd_parse_capability()  Found capability "SASL-IR": 13
[2023-01-04 14:11:24]<3> cmd_parse_capability()  Found capability "IDLE": 12
[2023-01-04 14:11:24]<3> cmd_parse_capability()  Found capability "NAMESPACE": 4
[2023-01-04 14:11:24]<3> imap_cmd_step() IMAP queue drained
[2023-01-04 14:11:24]<2> mutt_socket_write_d() 5> a0003 LIST "" ""
[2023-01-04 14:11:25]<M> imap_cmd_step() IMAP command failed: a0003 BAD User is authenticated but not connected.
[2023-01-04 14:11:25]<3> imap_cmd_step() IMAP queue drained
[2023-01-04 14:11:25]<3> mailbox_free() freeing invisible mailbox imaps://outlook.office365.com:993/INBOX with refcount 0 

-- 
Best regards,
Sadeep
PGP: 103BF9E3E750BF7E
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://mailman.neomutt.org/pipermail/neomutt-users-neomutt.org/attachments/20230104/79d686b0/attachment.sig>


More information about the neomutt-users mailing list