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