simonrob / email-oauth2-proxy

An IMAP/POP/SMTP proxy that transparently adds OAuth 2.0 authentication for email clients that don't support this method.
Apache License 2.0
850 stars 95 forks source link

--local-server-auth does not prompt with URL for Auth to O365 #157

Closed AusDave closed 1 year ago

AusDave commented 1 year ago

I have the proxy running in an elevated command prompt in Windows and my config file set. But running emailproxy.py --local-server-auth does not prompt with a URL

Proxy is listening on 1993 and I can see 1993 traffic hitting the python process but it still does not generate the url response that I am expecting

AusDave commented 1 year ago

All the log file shows is.

2023-04-12 11:00:35,037: Initialised Email OAuth 2.0 Proxy - listening for authentication requests 2023-04-12 11:02:41,270: Initialising Email OAuth 2.0 Proxy from config file C:\Email Proxy\email-oauth2-proxy-main/emailproxy.config 2023-04-12 11:02:41,417: Starting IMAP server at 10.30.193.85:1993 (unsecured) proxying outlook.office365.com:993 (SSL/TLS)

simonrob commented 1 year ago

This log doesn't show any attempt to actually use the proxied server. The proxy intercepts normal IMAP traffic – you need to connect to it via your client to trigger an authentication request.

See the step-by-step guide towards the start of the readme, and the debugging examples later on for lots of detail about how to do this.