-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
Always getting 500 Unrecognized Command errors #251
Comments
Oh couple things I meant to mention,
|
I'm not sure what Apache or PHP have to do with this, or why you're connecting in a browser - please could you clarify? Please also post the full debug log from the proxy. |
Sorry php and apache have nothing to do with it, I was mixing up this with the site I'm working on to use this. I should have just left that at Python. Below is the log using telnet 127.0.0.1 1587 and the a1 login e@mail.com password commands mentioned in the troubleshooting:
|
You are using IMAP commands with a SMTP server. You need to use the correct commands or, simpler, a SMTP client. |
To follow up and add a little more context (which I'll link from the readme for the benefit of others too): IMAP, POP and SMTP are all different protocols, so a different login/authentication method is required for each one. IMAPSee the Troubleshooting section of the proxy's readme. POPFor POP (and SMTP) connections, you need to obtain the base64-encoded version of your username (i.e., your email address) and a password, separated by (and starting with) a null character. To generate this value from the terminal you can do the following: printf '\x00email@example.com\x00password' | base64 Note the two You can now connect to a POP server through the proxy. As an example, to connect to the O365 server from the proxy's example configuration file, use If you have already authorised your account with the proxy you should see a response starting with SMTPSMTP's protocol is similar to POP, but requires another "greeting" message first. For this, you need the IP address of the machine you are connecting from. If you don't already know how to retrieve this, visit one of the many IP displaying websites, such as this one. Secondly, you need the base64-encoded version of your username joined with a password as discussed in the POP section above. Now you are ready to open a connection to an SMTP server through the proxy. As an example, to connect to the Gmail SMTP server from the proxy's example configuration file, use
If you have already authorised your account with the proxy you should see a response starting with |
I'm unsure of what I could possibly be doing wrong but in an effort to get this to work with Microsoft 365 / SMTP I keep getting the errors at the bottom of this post.
Here are the steps I've gone through:
I have been fighting this for 2 days and cannot figure out what the issue might be. I don't receive any errors regarding Python, Apache, or PHP.
Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: