Open weisslj opened 8 months ago
Asking for help as well. outlook.office365.com stopped working here since 23 september
@filipe3x sadly I never managed to get it running with offlineimap
, but I got it running with mbsync
(from isync
) and mutt_oauth2.py
, here is my ~/.mbsyncrc
, I hope that helps! If not, feel free to contact me privately for help!
IMAPAccount mycompany
Host outlook.office365.com
User weisslj@mycompany.com
SSLType IMAPS
CertificateFile /etc/ssl/certs/ca-certificates.crt
AuthMechs XOAUTH2
PassCmd "mutt_oauth2.py weisslj@mycompany.com.tokens"
IMAPStore mycompany-remote
Account mycompany
MaildirStore mycompany-local
# note trailing slash
Path ~/mail/mycompany/
Inbox ~/mail/mycompany/INBOX
# use subfolders and not weird dot-folders
Subfolders Verbatim
Channel mycompany
Far :mycompany-remote:
Near :mycompany-local:
# include everything
Patterns *
# create new folders only locally
Create Near
# enable this only after everything seems to work
Expunge Both
# save sync state inside local maildir folder
SyncState *
But I would very much return to offlineimap
(as I use this for my non-work mailserver).
Hi weisslj I got offlineimap to work by a rather complicated work around. See the final answers here: https://github.com/simonrob/email-oauth2-proxy/issues/297
And my ~/.offlineimaprc configuration
` [Repository Outlook365-Remote] type = IMAP remotehost = 127.0.0.1 remoteport = 1993 remoteuser = filipe.it@outlook.pt ssl = no folderfilter = lambda foldername: foldername in ['Receipts'] auth_mechanisms = PLAIN remotepass = xxxxxxxx sslcacertfile = /etc/ssl/certs/ca-certificates.crt realdelete = no
`
Bug description
Since around 18-Feb-2024 fetching email with offlineimap via IMAP from my work account outlook.office365.com via XOAUTH2 fails with
command LIST illegal in state NONAUTH
. Nothing was changed on my laptop as far as I know, and also not on the remote side according to our administrators. Accessing viamutt
,thunderbird
, andmbsync
still works!First I thought this is related to the changed Thunderbird client ID from
08162f7c-0fd2-4200-a84a-f25a4db0b584
to9e5f94bc-e8a4-4e73-b8be-63364c29d753
, but that does not seem to be the case!General informations
offlineimap -V
):offlineimap v8.0.0, imaplib2 v3.06, Python v3.11.2, OpenSSL 3.0.11 19 Sep 2023
(also latestmaster
v8.0.0-38-gd29a4dc
= d29a4dc)Python 3.11.2
outlook.office365.com
offlineimap -o -1
Configuration file offlineimaprc
pythonfile (if any)
Logs, error