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

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 04-23-2010, 02:11 AM
Active Member
 
Posts: 37
Default Where are user Contacts/Address Books stored?

Hi everyone,

I am having a terrible time finding where a users Address Book is stored. I'm pretty sure it's in the MySQL database rather than in LDAP, but I cannot find it.

I am using 5.0.16 and trying to access the contacts from within MySQL.

Any help would be appreciated.

Thank you,
Michael
Reply With Quote
  #2 (permalink)  
Old 04-23-2010, 04:01 AM
Special Member
 
Posts: 113
Default

Entries of type 6 in table mail_item from database mboxgroupXX are address books entries. To find your mailbox id, see Account mailbox database structure - Zimbra :: Wiki.

Sample query for mailbox id 25

Code:
select * from mboxgroup25.mail_item where type = '6' and mailbox_id = '25';
This is for Zimbra 6.0, but I think it works also for 5.0.
Reply With Quote
  #3 (permalink)  
Old 04-23-2010, 10:49 AM
Active Member
 
Posts: 37
Default

Thanks!

Is there a mapping somewhere that tells what the type's are? 6=contact, what others are there?

Also, any tips on how to decode the metadata for a contact? It's all jumbled together and I don't see any real field-delimiters.

Are there any zimbra-provided command-line utilities that make accessing the address books any easier?

Thanks again,
Michael
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.