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 12-09-2009, 11:56 AM
Active Member
 
Posts: 35
Default SSH path for accessing user mailbox

Hi there -

We have the need to programmatically access a user's mailbox in order to accomplish a set of tasks that will not be done via a mail client (thick or thin).

I know about the /opt/zimbra/store location and I have the mailboxID of the user account and am familiar with using the zmprov utility for admin functions -- what I can't seem to locate is the actual physical path (to said user's mailbox in question) so our script can access the mail contents there.

I apologize if this question has been dealt with somewhere else in the forums but I could not find it using a variety of different search terms

any help is much appreciated.

Thanks

our version info:

Release 5.0.15_GA_2851.RHEL5_64_20090310170650 CentOS5_64 NETWORK edition
Reply With Quote
  #2 (permalink)  
Old 12-11-2009, 02:45 PM
Moderator
 
Posts: 1,147
Default

Without too much information on what you are attempting to do here all the help I can offer is that you can find the mailbox ID using:
Code:
zmprov gmi user@domain.com | grep mailboxId | cut -f2 -d" "
Once you have the mailbox ID the raw files for the mail are located in a folder within /opt/zimbra/store/0/<mailbox ID>/msg/

Edit: Looking at your post again it seems like you already have the location of the messages that I posted above... so I have no idea what you mean by "physical location".
Reply With Quote
  #3 (permalink)  
Old 12-11-2009, 02:49 PM
Active Member
 
Posts: 35
Default

Hey Arcane -

Thanks for the reply, I actually did figure that part out

what I did notice about that path you listed :
/opt/zimbra/store/0/<mailbox ID>/msg/

.. is that beneath that there are 256 subfolders beneath the ../msg directory - and not all of them contain data. Is there a document that would explain how those folders get populated and/or which methodology governs that?

ultimately we are looking to extract the mailbox over into an mbox format
Reply With Quote
  #4 (permalink)  
Old 12-15-2009, 11:49 AM
Moderator
 
Posts: 1,147
Default

Since postfix uses the maildir method of storing messages I would just take your pick of maildir to mbox - Google Search.
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.