Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Users

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-09-2008, 03:09 PM
Starter Member
 
Posts: 1
Default Login via python imaplib

Hello,

I obtained a test demo account from zimbra and am trying to connect to it programatically via python:

>>> M = imaplib.IMAP4('testzimbra.com')
>>> M.login('username', 'password')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/imaplib.py", line 501, in login
raise self.error(dat[-1])
imaplib.error: cleartext logins disabled


How do I enable cleartext logins? Or how do I log in programatically with encryption...

Thanks
Jim
Reply With Quote
  #2 (permalink)  
Old 09-02-2010, 12:20 PM
Starter Member
 
Posts: 1
Default Use IMAP4_SSL

I know this is an old post, but I ran across this after searching for the error: cleartext logins disabled.

I was able to get around this error by using IMAP4_SSL. The following code worked for me.

Code:
import imaplib, getpass

m = imaplib.IMAP4_SSL('connect.southwest.tn.edu')
m.login(getpass.getuser(), getpass.getpass())
Hope this helps someone else.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.