Results 1 to 4 of 4

Thread: SSH path for accessing user mailbox

  1. #1
    Join Date
    Feb 2008
    Location
    SF
    Posts
    35
    Rep Power
    7

    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

  2. #2
    Join Date
    Feb 2007
    Location
    Portland, OR
    Posts
    1,147
    Rep Power
    10

    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".

  3. #3
    Join Date
    Feb 2008
    Location
    SF
    Posts
    35
    Rep Power
    7

    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

  4. #4
    Join Date
    Feb 2007
    Location
    Portland, OR
    Posts
    1,147
    Rep Power
    10

    Default

    Since postfix uses the maildir method of storing messages I would just take your pick of maildir to mbox - Google Search.

Similar Threads

  1. [SOLVED] Mailbox restoration of a user
    By yogesh2tech in forum Installation
    Replies: 4
    Last Post: 10-08-2009, 04:13 AM
  2. [SOLVED] Zimbra logwatch.
    By nishith in forum Administrators
    Replies: 5
    Last Post: 06-10-2009, 04:42 PM
  3. Opening another users mailbox if user is hidden from GAL
    By theklone in forum Zimbra Connector for Outlook
    Replies: 2
    Last Post: 06-01-2008, 10:37 PM
  4. Fedora Core 3, Clean Install - Not working!
    By pcjackson in forum Installation
    Replies: 17
    Last Post: 03-05-2006, 06:38 PM
  5. Network edition - strange behavior
    By goetzi in forum Installation
    Replies: 6
    Last Post: 11-16-2005, 02:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •