-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
Issues with Mac OS #14
Comments
The proxy definitely does work on macOS Monterey, so I'm not sure what is going on here. Do you have a firewall or other network monitoring/blocking tool running that could be interfering with the connection? Have you definitely set up your client to use an unsecured connection? What output do you get if you try debugging via telnet (see the Troubleshooting section of the readme) |
Tried connecting with telnet, both imap and smtp, same error python3 emailproxy.py telnet localhost 1993
telnet localhost 1465 |
Given that this is happening before the connection is set up, it is very hard to debug remotely without being able to replicate it (which I can't). The proxy certainly does work on all of those macOS versions. You mentioned that the proxy worked for you elsewhere - what happens if you copy the proxy's configuration file from those systems to one of the macOS ones that is presenting this issue? Another thing that would help debug would be to get the full error details rather than the proxy's message. You can do this by making a minor edit to the script, inserting |
Thanks for the suggestions. python3 emailproxy.py FROM THIS OUTPUT I WAS ABLE TO ZERO IN ON A FIX >>>> "Install Certificates.command" /Applications/Python\ 3.9/Install\ Certificates.command ; exit; Saving session... [Process completed] THE PROXY NOW WORKS! |
Excellent! Thanks for resolving this and reporting back. Just to summarise for others encountering this problem on macOS: the issue here was that the Python installation (e.g., from python.org, homebrew, etc) did not have properly configured root certificates. This can be resolved by running |
I was using python3 installed with brew. After I accidentally uninstalled certifi (also with brew) which I thought is not used any more, it asked me to remove So the error led me here... After reinstalling certifi with brew or pip again and again it just didn't work. Then I checked the ruby scripts of brew, it turned out that cert under that dir are from ca-certificates, which is used by openssl@3, which is also required by python3. What I need to do is reinstalling ca-certificates and openssl@3. The later one will create a symlink to the cert of ca-certificates. The prompt of brew is quite misleading, hope no one will run into the question like me 😄 |
Works fine on Fedora 35 and Debian 11 but no luck with MacOS Monterey. Always gives this error:
"IMAP server at localhost:1993 (unsecured) proxying imap.gmail.com:993 (SSL/TLS) encountered an SSL error - is the server's starttls setting correct? Current value: False"
I've tried everyting I can think of on client and server. Any suggentions?
Config:
[Server setup]
[IMAP-1993]
local_address = localhost
server_address = imap.gmail.com
server_port = 993
[SMTP-1465]
server_address = smtp.gmail.com
server_port = 465
[Account setup]
[[email protected]]
permission_url = https://accounts.google.com/o/oauth2/auth
token_url = https://oauth2.googleapis.com/token
oauth2_scope = https://mail.google.com/
redirect_uri = http://localhost
client_id = --------------------------------apps.googleusercontent.com
client_secret = -----------------------------------
The text was updated successfully, but these errors were encountered: