Results 1 to 2 of 2

Thread: imap admin access

  1. #1
    Join Date
    Sep 2008
    Location
    Cambridge, MA
    Posts
    41
    Rep Power
    7

    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=IMAP4_SSL("mail.example.com")
    server.login("user", "password")
    mboxes=server.list()[1]
    ...

    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.

    Thanks,

    -- Gary Oberbrunner

  2. #2
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    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 source.server.com --user1 username --authuser1 adminusername --password1 adminpassword --ssl1 --port1 993 --host2 destination.server.com --user2 username --password2 password --authmech2 PLAIN --ssl2 --port2 993 --syncinternaldates --subscribe --nosyncacls

    or

    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-29-2010, 12:03 AM
  2. Date/time update killed admin account access
    By tenpagyatso in forum Installation
    Replies: 2
    Last Post: 07-01-2008, 10: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, 03:14 AM
  4. Access to admin only after rebooting
    By josus in forum Administrators
    Replies: 0
    Last Post: 11-03-2006, 02:06 AM
  5. Replies: 9
    Last Post: 08-31-2006, 09: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
  •