I have the following code connecting to Microsoft Exchange Server (2010 edition). This is having trouble snapping me. (It works with other email servers / local mail servers created for testing) Users / passwords are valid and, for this purpose, hard coded spelling problems are not remembered. I use this email account in Microsoft's approach, so it is also valid on server side.
self.connection = poplib.POP3_SSL ('my.email.server') self.connection.set_debuglevel (2) connecting yourself to yourself. Connection.getwelcome () self.connection.user ('myuser') self.connection.pass_ ('mypassword')
The result is:
OK, Microsoft Exchange POP3 service is ready * CMD * 'User Messenger' * URL * 'User Mascar' * * * * + OK \ r \ n * * resp * 'OK * CMD *' Pass Message Password '* put *' Pass Mese-powered '* * * * - RR logon failure: unknown user name or wrong password. \ R \ n '* resp *' -ERR logon failure: unknown user name or incorrect password. 'Tracebacks (most recent call final): File "getMail.py", line 237, & lt; Module & gt; File "getMail.py", line 229, start_deamon deamon.process_email () file "getMail.py", line 63, process_email in self.connection.pass_ ('password') file "C: \ Python27 \ lib Self._shortcmd ('PASS% s'% pswd) file "C: \ Python27 \ lib \ poplib.py", line 152, _shortcmd in the self._getstrap () file in return, \ Poplib.py ", line 189, pass_ return "C: \ Python27 \ lib \ poplib.py", _getstrap in error 128, error_proto (resp) poplib.error_proto: -ERR logon failure: unknown user name or incorrect password error is very clear, but I'm sure user / Near real, I have POP and POP_SSL Attempted to connect through, the result is the same. I get the welcome message, so I know that the server is UP and supports POP3 / POP3_SSL and the port is correct (which is the default). I am not behind any firewall / proxy, the server is on the same network. What could be the error? Is there any other way of using POP3 from Microsoft Exchange? (Or if necessary IPMA).
No comments:
Post a Comment