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
797 stars 86 forks source link

No error in terminal but SMTP does not connect #178

Closed mareekkk closed 1 year ago

mareekkk commented 1 year ago

Screenshot_20230626_190156

I have successfully connected IMAP but not SMTP. I tried 127.0.0.1 instead of localhost too but same problem. Tried Mailspring client and Kmail.

Is this a bug?

I am using Kubuntu with the latest Surface Kernel if this helps.

simonrob commented 1 year ago

It's unlikely that this is a bug given how common it is to use the proxy with O365. As explained in the readme, it is always worth trying to connect via a terminal first. You mention trying the IPv4 address directly; have you tried the IPv6 version?

If this still doesn't help, please post the proxy log in --debug mode, the log that your client is offering (in the screenshot) and your configuration file.

mareekkk commented 1 year ago

It's unlikely that this is a bug given how common it is to use the proxy with O365. As explained in the readme, it is always worth trying to connect via a terminal first. You mention trying the IPv4 address directly; have you tried the IPv6 version?

If this still doesn't help, please post the proxy log in --debug mode, the log that your client is offering (in the screenshot) and your configuration file.

Thank you! It works now by using IPv6.

Solution: Use ::1 in SMTP server instead of localhost or 127.0.0.1

simonrob commented 1 year ago

Thanks for following up – I'm glad you were able to resolve this.