zcore(8gx)
π NAME
zcore β the bridge for PHP-MAPI requests π«Ά
(ok bestie this is zcore from section 8gx of the Gromox admin reference, and yes we're getting into it)
β¨ SYNOPSIS β¨
zcore [-c config]
π¦ DESCRIPTION π¦
So zcore is a bridge process β literally a proxy β sitting between PHP-MAPI and the Information Store. Those two have their own manpages btw: mapi(4gx) and exmdb_provider(4gx) respectively, go read them, iykyk.
It listens on /run/gromox/zcore.sock β and that path is hardcoded, no cap, don't @ me β waiting for zcore RPCs, which is a Gromox-specific protocol, and then it issues exmdb RPCs to exmdb_provider(4gx). And here's the iconic part: since exmdb_provider connections have basically no state to speak of, zcore is the process that defines the login sessions. It's giving main character energy, honestly. π₯
π Real talk: zcore needs to run on the same server as the program that uses the PHP-MAPI functions. Same box. No long distance, bestie.
π OPTIONS π
-cconfig β read configuration directives from the given file. If you don't pass this option,/etc/gromox/gromox.cfgand/etc/gromox/zcore.cfgboth get read. (Both! greedy little thing π )--versionβ output version information and exit. Slay, short and sweet.-?β display option summary. The "help me I'm lost" flag.
Also, heads up: all time-based command-line options and configuration file directives follow the syntax described in gromox(7), section "Duration specifications". So like, go look at that if you're doing time stuff. β°
πΈ CONFIGURATION DIRECTIVES (gromox.cfg) πΈ
These are the directives that get recognized when reading from /etc/gromox/gromox.cfg, or when you use the -c option to specify a custom file:
daemons_fd_limitβ in gromox-zcore, this is treated as an alias forzcore_fd_limit. Same thing, different name, we love a nickname.outgoing_smtp_urlβ seegromox.cfg(5):outgoing_smtp_url. (yeah, that's the whole description, it's a whole cross-reference moment)zcore_fd_limitβ requests that the file descriptor table be at least this large. The magic value0means "use the system default hard limit" β that'srlim_max, cf.setrlimit(2). Default:0.
π§ CONFIGURATION DIRECTIVES (zcore.cfg) π§
And these are the ones recognized when reading from /etc/gromox/zcore.cfg, or when the -c option points at a custom file:
address_cache_intervalβ Default:5 minutesaddress_table_sizeβ Default:3000config_file_pathβ a colon-separated list of directories that get scanned when locating further configuration files, especially the ones used by subcomponent instances. (For example,mysql_adaptor(4gx)would be directed to look at/etc/gromox/zcore/mysql_adaptor.cfgbefore/etc/gromox/mysql_adaptor.cfg.) Default:/etc/gromox/zcore:/etc/gromoxdata_file_pathβ a colon-separated list of directories that get scanned when locating data files. Default:/usr/share/gromox/zcorehost_idβ a unique identifier for this system. It's used for the HELO line of outgoing SMTP connections, and as an unused identifier withinmuidStoreWrapentryids. The identifier should only use characters allowed for hostnames. Default: (system hostname)mailbox_ping_intervalβ Default:5 minutesmail_max_lengthβ Default:64Mmax_ext_rule_lengthβ Default:510Kmax_rcpt_numβ the maximum number of recipients that an e-mail is allowed to have. Default:256rpc_proxy_connection_numβ for every exmdb server inexmdb_list.txt, establish and keep this many outbound connections for sending commands. (There is at most one additional connection, for async notification, alive per server.) Default:10submit_commandβ Default:/usr/bin/php /usr/share/gromox/submit.phpuser_cache_intervalβ sets the time for how long the MAPI profile is cached before it's written to disk. Default:1 houruser_table_sizeβ Default:5000x500_org_nameβ Default: (unspecified)zcore_listenβ the named path for theAF_LOCALsocket that zcore will listen on. Default:/run/gromox/zcore.sockzcore_log_fileβ target for log messages here. Special values-(stderr/syslog depending on parent PID) orsyslogare recognized. Default:-(auto)zcore_log_levelβ maximum verbosity of logging.1=crit,2=error,3=warn,4=notice,5=info,6=debug. Default:4(notice)zcore_max_obh_per_sessionβ the maximum number of object handles each session can have at any one time (e.g. folders/messages/etc. open simultaneously). Use0to indicate unlimited. There is one session for each time a mailbox is opened. Default:500zcore_threads_numβ the minimum number of client processing threads to keep around. Default:10zrpc_debugβ log every incoming zcore RPC and the return code of the operation in a minimal fashion to stdout. Level1emits RPCs with a failure return code, level2emits all RPCs. β οΈ Note the daemon log level needs to be "debug" (6) too. Default:0
π₯ NETWORK PROTOCOL π₯
The transmissions on the zcore socket are simple concatenations of protocol data units built using the NDR format. The PDU length is present within the PDU itself near the start. (so it's like, self-describing, we love a self-aware queen π)
{
leuint32_t length;
char pdu[];
}
pdu := {
uint8_t call_id;
string directory;
switch (call_id) {
...
}
}
π STORE LOOKUP π
zcore determines the store path for a user from the user database, which is provided by mysql_adaptor(4gx).
The filemap that specifies how paths are handled lives at data_file_path/exmdb_list.txt, whereby data_file_path is that eponymous directive from the config file.
Each line in this file consists of 4 columns separated by whitespace:
- A portion of the store path to match on
- The type of store (
"private"or"public") - The IPv6 socket address of the server running
exmdb_provider(4gx). The address must conform togromox(7)Β§ "Host addresses". - The TCP port number of the server
β SIGNALS β
- Upon receipt of
SIGHUP, configuration files are re-read β but only a few select directives can be changed this way, because many parts do not implement reload. So like, don't expect a full glow-up from one signal, bestie. π - Upon receipt of
SIGHUP, the address book cache will be dropped; the next regular request for the AB will cause it to be reloaded. Fresh start energy β¨
π FILES π
data_file_path/folder_names.txtβ translations for essential folders in a message store.data_file_path/notify_bounce/β templates for read/nonread notification mails sent to originators.
π NOTES π
Behavior for the address book generally mirrors exchange_nsp(4gx), so go see that manpage for additional notes. iykyk π«Ά
π SEE ALSO π
okay that's the whole page!! this was the Gromox admin reference, zcore(8gx), brought to you with love and also a socket that is hardcoded whether you like it or not π
π¦ mwah, go open a mailbox or something π
π¦ where this page comes from
- alpine 3.24: grommunio-gromox-doc 3.6-r0 Β· AGPL-3.0-or-later
- π the page's license: CC-BY-SA-4.0 or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms