simonrob/email-oauth2-proxy

Can't get past Authorisation request received

Closed this issue · 2 comments

Hi I am trying to get the emailproxy.py to run on windows in no gui mode to do some testing in development. When I use telnet to connect to the instance and run a1 login e@mail.com password I replaced the email and password I dont get a response back here is the debug console

2025-08-13 12:21:34: Initialising Email OAuth 2.0 Proxy (version 2025-07-18) in debug mode from config file C:\EmailProxy\emailproxy.config
2025-08-13 12:21:34: Starting IMAP server at 127.0.0.1:1993 (unsecured) proxying outlook.office365.com:993 (SSL/TLS)
2025-08-13 12:21:34: Starting POP server at 127.0.0.1:1995 (unsecured) proxying outlook.office365.com:995 (SSL/TLS)
2025-08-13 12:21:34: Starting SMTP server at 127.0.0.1:1587 (unsecured) proxying smtp-mail.outlook.com:587 (STARTTLS)
2025-08-13 12:21:34: Initialised Email OAuth 2.0 Proxy - listening for authentication requests. Connect your email client to begin
2025-08-13 12:21:47: New incoming connection to IMAP server at 127.0.0.1:1993 (unsecured) proxying outlook.office365.com:993 (SSL/TLS)
2025-08-13 12:21:47: Accepting new connection from 127.0.0.1:52243 to IMAP server at 127.0.0.1:1993 (unsecured) proxying outlook.office365.com:993 (SSL/TLS)
2025-08-13 12:21:47: IMAP (127.0.0.1:52243-{127.0.0.1:1993}-outlook.office365.com:993) --> [ Client connected ]
2025-08-13 12:21:47: IMAP (127.0.0.1:52243-{127.0.0.1:1993}-outlook.office365.com:993) <-> [ Starting TLS handshake ]
2025-08-13 12:21:47: IMAP (127.0.0.1:52243-{127.0.0.1:1993}-outlook.office365.com:993) <-> [ TLSv1.2 handshake complete ]
2025-08-13 12:21:47: IMAP (127.0.0.1:52243-{127.0.0.1:1993}-outlook.office365.com:993) <-- b'* OK The Microsoft Exchange IMAP4 service is ready. [SgBOADMAUAAyADcANQBDAEEAMAAwADkAOAAuAFoAQQBGAFAAMgA3ADUALgBQAFIATwBEAC4ATwBVAFQATABPAE8ASwAuAEMATwBNAA==]\r\n'
2025-08-13 12:21:47: IMAP (127.0.0.1:52243-{127.0.0.1:1993}-outlook.office365.com:993) <-- b'* OK The Microsoft Exchange IMAP4 service is ready. [SgBOADMAUAAyADcANQBDAEEAMAAwADkAOAAuAFoAQQBGAFAAMgA3ADUALgBQAFIATwBEAC4ATwBVAFQATABPAE8ASwAuAEMATwBNAA==]\r\n'
2025-08-13 12:22:01: IMAP (127.0.0.1:52243-{127.0.0.1:1993}-outlook.office365.com:993) --> b'a1 login [[ Credentials removed from proxy log ]]\r\n'
2025-08-13 12:22:02: Authorisation request received for e@mail.com (interactive mode

What authorisation mode are you using? As the readme explains, no-GUI mode is of no use on its own unless you've already authorised - you need to add another option as well to choose how to proceed with authorisation.

Ok thank you very much for your help seems I overlooked that. I got it working with this command
python emailproxy.py --no-gui --local-server-auth --debug