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

IMAP Auth for O365? #80

Open
JJedrasik opened this issue Sep 7, 2023 · 6 comments
Open

IMAP Auth for O365? #80

JJedrasik opened this issue Sep 7, 2023 · 6 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@JJedrasik
Copy link

Describe the bug
I've been trying to configure the emailer through an office365 account, but regularly just get
ERRO[2023-09-07T22:26:32Z] Error reaching mailserver Error="LOGIN failed." Server="outlook.office365.com:993"

My mail profile seems fine, and the login works otherwise:

[[Profile]]
  IgnoreDefaults = false
  [Profile.Mail]
  ImapServer = "outlook.office365.com:993"
  Username = "[email protected]"
  Password = "myPass"
  ReadOnly = true
  ImapTLS = false
  StartTLS = true
  GenerateLocalUIDs = false

I read that MS turned off basic auth for IMAP recently, could this be the reason? Anyone have any luck with this?

@c-seeger
Copy link
Contributor

c-seeger commented Sep 9, 2023

Hi @JJedrasik "Login failed." is the message returned by outlooks mailserver so it looks like your username or password is not matching. Please check again. Your configuration looks fine.

@LTech-Corey
Copy link

@JJedrasik Have you had any luck with this? I'm running into the same issue with known working credentials

@c-seeger
Copy link
Contributor

Sorry for the long reply time will check once i have some time

@LTech-Corey
Copy link

I did some digging in the interim, it looks like IMAP with 365 must use the OAuth flow now: https://techcommunity.microsoft.com/t5/exchange-team-blog/exchange-online-email-applications-stopped-signing-in-or-keep/ba-p/3641943

Hope this helps!

@JJedrasik
Copy link
Author

This is the only lead I've been able to find - in that basic auth IMAP doesn't work anymore - haven't been able to get it configured though. Did you manage to get it working @LTech-Corey ?

@LTech-Corey
Copy link

Unfortunately not. It seems like a limitation of this software for now, hopefully an update to support OAuth is something the contributors are willing to do!

@c-seeger c-seeger self-assigned this Dec 18, 2023
@c-seeger c-seeger added enhancement New feature or request help wanted Extra attention is needed labels Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants