Linux

Where Does Zimbra Store Mail and Config?

Where Zimbra keeps the message store, the database, indexes, and config under /opt/zimbra on a Linux server.

Last updated

A Zimbra mailbox server keeps everything under /opt/zimbra, with a fixed tree that looks the same on every install. Messages and attachments live in store, metadata sits in the db database, and Lucene indexes sit in index. Configuration, logs, and certificates each get their own folder beside them.

The install path never varies, which makes runbooks portable. Stop services as the zimbra user before touching the database directory directly. Day to day administration happens through zmcontrol and the admin console rather than by moving files around.

Where Zimbra stores this, by platform

Linux
/opt/zimbra/store

Root for the whole tree: store holds messages per mailbox ID, db holds the MariaDB metadata, index holds Lucene search data. Config sits in conf, logs in log, backups default to backup. Always operate as the zimbra user, never root, when touching these folders.

Frequently asked questions

how do I back up a Zimbra server

Stop all services with zmcontrol stop as the zimbra user, then back up /opt/zimbra/store for messages plus the database in /opt/zimbra/db. The index under /opt/zimbra/index can be rebuilt, but restoring it saves hours on large servers. Keep LDAP config from /opt/zimbra/conf too.

what are the numbered folders in the Zimbra store

Each mailbox directory is named by internal mailbox ID, which is unique per server rather than system-wide. The database in /opt/zimbra/db maps those IDs to accounts. Copying store folders between servers without the database leaves orphaned files nothing can attach to.

where are the Zimbra logs

Check /opt/zimbra/log first, where every service writes its own logs. Transaction logs in /opt/zimbra/redolog show recent activity, and mailboxd statistics accumulate as CSV files under zmstat. The admin console exposes much of the same without shell access.

Notice an outdated path? Let us know.