Results 1 to 2 of 2

Thread: Login via python imaplib

  1. #1
    Join Date
    Oct 2008
    Posts
    1
    Rep Power
    7

    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

  2. #2
    Join Date
    Sep 2010
    Posts
    1
    Rep Power
    5

    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.

Similar Threads

  1. 2nd server redirects to the master on login
    By gilran in forum Administrators
    Replies: 6
    Last Post: 01-14-2013, 08:23 PM
  2. User login hangs up on Loading screen
    By marinew in forum Administrators
    Replies: 9
    Last Post: 07-14-2011, 09:53 PM
  3. imapsync and scalix
    By deugenin in forum Migration
    Replies: 3
    Last Post: 02-11-2008, 08:45 PM
  4. Replies: 4
    Last Post: 12-13-2007, 10:18 AM
  5. problem while building perl
    By ravinder in forum Developers
    Replies: 7
    Last Post: 05-29-2006, 10:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •