simonrob/email-oauth2-proxy

Usage with Gmail web interface

w-henderson opened this issue · 3 comments

I'm trying to set up this project to run in the cloud and allow me to send from my Outlook address using the Gmail interface. This used to work until Microsoft disabled basic authentication, which is why I'm trying to set this up. Gmail tells me "couldn't reach server", but I see this in the logs:

2024-10-13 16:12:03: Accepting new connection from 209.85.218.43:61851 to SMTP server at 0.0.0.0:587 (SSL/TLS) proxying smtp-mail.outlook.com:587 (STARTTLS)
2024-10-13 16:12:03: SMTP (209.85.218.43:61851-{10.128.0.3:587}-smtp-mail.outlook.com:587) <-> [ Starting TLS handshake ]
2024-10-13 16:12:03: SMTP (209.85.218.43:61851-{10.128.0.3:587}-smtp-mail.outlook.com:587) --> [ Client connected ]
2024-10-13 16:12:03: SMTP (209.85.218.43:61851-{10.128.0.3:587}-smtp-mail.outlook.com:587)     <-- b'220 CH0PR07CA0007.outlook.office365.com Microsoft ESMTP MAIL Service ready at Sun, 13 Oct 2024 16:12:02 +0000 [08DCEB746BAC29D2]\r\n'
2024-10-13 16:12:03: SMTP (209.85.218.43:61851-{10.128.0.3:587}-smtp-mail.outlook.com:587) <-- b'220 CH0PR07CA0007.outlook.office365.com Microsoft ESMTP MAIL Service ready at Sun, 13 Oct 2024 16:12:02 +0000 [08DCEB746BAC29D2]\r\n'
2024-10-13 16:12:12: SMTP (209.85.218.43:61851-{10.128.0.3:587}-smtp-mail.outlook.com:587) --> [ Client disconnected ]
2024-10-13 16:12:12: SMTP (209.85.218.43:61851-{10.128.0.3:587}-smtp-mail.outlook.com:587) <-- [ Server disconnected ]

Is this a supported use-case, and if so, do you have any ideas as to how I might resolve this? Thank you!

This isn't a use-case I have myself, but it has been mentioned previously, and it is possible to get things working. I'd recommend looking back through previous discussions around Gmail aliases – this one is probably the most helpful.

I'm assuming this has now been resolved, so will close this issue.

Just to follow up – I was pointed to https://github.com/jasperchan/gmail-to-outlook-proxy, which may allow you to set this up without the need for the proxy.