Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oauth2 O365 troubles #275

Open
epichub opened this issue Nov 22, 2023 · 1 comment
Open

oauth2 O365 troubles #275

epichub opened this issue Nov 22, 2023 · 1 comment

Comments

@epichub
Copy link

epichub commented Nov 22, 2023

I am trying to get imapfilter to work with O365, but struggling.
I have read #186 and am encoding the session according to #252
My account config is like this

ACCOUNT = IMAP {
  server = "outlook.office365.com",
  username = ACCOUNTuser,
  password = ACCOUNTpass,
  oauth2 = oauth2string,
  port = 993,
  ssl = 'auto'
}

However, when I try:

ACCOUNT.INBOX:check_status()

imapfilter outputs:

imapfilter: IMAP (3): 1001 NO LOGIN failed.
imapfilter: IMAP (3): 1003 BAD Command received in Invalid state.
imapfilter: authentication of <ACCOUNTuser>o@outlook.office365.com failed.

I think the ouathstring is ok - but I need to configure imapfilter to use the correct commands to login to the server?

@lefcha
Copy link
Owner

lefcha commented Dec 26, 2023

Hm, that invalid state is weird, can you share the previous debug output until this error?

Make sure to remove any sensitive details...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants