Results 1 to 2 of 2

Thread: imap admin access

Hybrid View

  1. #1
    Join Date
    Sep 2008
    Cambridge, MA
    Rep Power

    Default imap admin access

    I'm trying to do some automated mail processing. I have a python script that loads the emails via imap and processes them; it's all basically working nicely. Something like this:

    from imaplib import *
    import email, email.parser
    server.login("user", "password")

    Instead of hardcoding the user's name and password here, I'd like to log in as admin with admin's password. Some IMAP servers allow authenticating as admin but logging onto user's mailbox using usernames like this:
    server.login("user*admin", "adminpassword")
    I.e. real user, "*", admin username. I've tried this on Zimbra and it doesn't seem to work. I also tried proxyauth but it didn't work either (at least in my test). I can't find a lot of documentation on Zimbra's IMAP client.

    Is there any way to do this? You can do it in the web admin client, so I'm thinking there must be a way.


    -- Gary Oberbrunner

  2. #2
    Join Date
    May 2006
    Rep Power


    I'm not sure how that particular python imaplib works (can you do TLS/SSL easily?) but:
    Quote Originally Posted by dkarp
    Zimbra does support AUTH=PLAIN. You should be able to authenticate as a target user using only an admin username/password and the target username -- no user passwords are referenced in this case.
    Example with imapsync:
    Quote Originally Posted by mmorse
    imapsync --host1 --user1 username --authuser1 adminusername --password1 adminpassword --ssl1 --port1 993 --host2 --user2 username --password2 password --authmech2 PLAIN --ssl2 --port2 993 --syncinternaldates --subscribe --nosyncacls


    imapsync --syncinternaldates --subscribed --host1 sourceserver --host2 destinationserver --user1 userAcctSrc --authuser1 adminUserSrc --password1 adminPassDest --user2 useracctondest --authuser2 adminUserDest --password2 adminPassDest --ssl1 --port1 num --ssl2 --port2

    (Be sure zimbraImapSSLServerEnabled is set to TRUE.)

    I believe AUTH=PLAIN requires TLS encoding, so an IMAPs or STARTTLS command on a normal IMAP connection.

Similar Threads

  1. Replies: 42
    Last Post: 01-28-2010, 11:03 PM
  2. Date/time update killed admin account access
    By tenpagyatso in forum Installation
    Replies: 2
    Last Post: 07-01-2008, 09:26 AM
  3. Nee a head start with IMAP client to access Zimbra mails
    By abhishek_agl in forum Developers
    Replies: 14
    Last Post: 12-08-2006, 02:14 AM
  4. Access to admin only after rebooting
    By josus in forum Administrators
    Replies: 0
    Last Post: 11-03-2006, 01:06 AM
  5. Replies: 9
    Last Post: 08-31-2006, 08:02 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