fciubotaru / z-pec

A zimbra fork adding support for RFC6109
Other
6 stars 10 forks source link

Analyze Zimbra's default db struture and storage data #4

Closed fciubotaru closed 11 years ago

fciubotaru commented 11 years ago

Points of interest:

csfercoci commented 11 years ago

Zimbra arhitecture: http://www.zimbra.com/docs/ne/8.0.2/administration_guide/wwhelp/wwhimpl/js/html/wwhelp.htm#href=ZCS_8_0_2_Admin_Guide.System_Architecture.html

Zimbra packages: http://www.zimbra.com/docs/ne/8.0.2/administration_guide/wwhelp/wwhimpl/js/html/wwhelp.htm#href=ZCS_8_0_2_Admin_Guide.Zimbra_Application_Packages.html

File tree structure of the project: http://www.zimbra.com/docs/ne/8.0.2/administration_guide/wwhelp/wwhimpl/js/html/wwhelp.htm#href=ZCS_8_0_2_Admin_Guide.Zimbra_System_Directory_Tree.html

Important role in this application has zimbra mailboxserver. http://www.zimbra.com/docs/ne/8.0.2/administration_guide/wwhelp/wwhimpl/js/html/wwhelp.htm#href=ZCS_8_0_2_Admin_Guide.Mailbox_Server.html

Data are stored in 3 main parts : immutable message itself, that is stored on filesistem as a standard RFC message metadata for that message that is stored in the database indexed message with lucene engine This is explained in details on the link provided above.

EVERY NEW USER ACCOUNT CREATE HIS OWN DATABASE with name MBOXGROUP+ ACCOUNT_ID

csfercoci commented 11 years ago

Images below are structure of the database for zimbra server

Zimbra database is unique and contains all metadata regarding email accounts zimbra-db

Every email account has his own database MboxGroup+accountID mboxgroup_accountId