grommunio-admin-dbconf(1)
πΈ Name πΈ
okay bestie, welcome to the grommunio-admin-dbconf(1) page π this is the manual for grommunio-admin dbconf β Database-stored configuration management. yes, it's giving central config energy.
β¨ Synopsis β¨
grommunio-admin dbconf (commit | delete) SERVICE [FILE [KEY]]
grommunio-admin dbconf get SERVICE FILE [KEY]
grommunio-admin dbconf list [SERVICE [FILE [KEY]]]
grommunio-admin dbconf set [-b] [-i] [--] SERVICE FILE KEY VALUE
π Description π
so grommunio dbconf gives you the ability to store and manage configurations at a single location while making it available across distributed systems. the configs live in the central MySQL database and can be accessed via grommunio-dbconf(1) and grommunio-admin-dbconf(1). both tools essentially provide the same functionality, but grommunio-dbconf(1) provides far better performance and is intended to be used for quickly accessing the configuration. periodt.
configurations consist of key/value pairs organized in files, grouped by service. each service can have an arbitrary number of configuration files, which in turn can contain an arbitrary number of unique keys. literally the whole coziness of organized config π
π Commands π
commitβ trigger commit hook for service, file or key.deleteβ delete service, file or key.getβ get file or single key.listβ list available services, files or keys.setβ set a configuration key.
π Options π
SERVICEβ Name of the service to configure.FILEβ Name of the configuration file.KEYβ Name of the configuration key.VALUEβ Value to store in the key.--β Indicate that all options have been specified and only names follow.-b,--batchβ Do not auto-commit.-i,--initβ Only set if configuration key does not exist yet.
π¦ grommunio-admin π¦
the grommunio-admin API and CLI are also dbconf consumers. this allows system administrators to change certain configurations without filesystem access and the need to restart the API. slay for not having to touch the filesystem, honestly.
the following files and keys are meaningful when placed under the grommunio-admin service:
π multi-server π
policyβ Server selection policy for newly created users and domains in multi-server environments. Possible values arebalanced,first,last,randomandround-robin. Default isround-robin.
π₯ Commit Hooks π₯
when modifying values, potential consumers can be notified of this change via commit hooks, for example by restarting the service using the configuration. for security reasons only a few white-listed commands are available (see the Available Commit Commands section below). no random chaos commands allowed, bestie π
commit hooks can be defined on key, file or service level. set operations always trigger commits at key level, while the commit command can directly trigger key or service level hooks depending on whether a file or key is specified.
if no hook is defined for a specific trigger level, it automatically falls through to the next lower level, in the order key > file > service.
commit hooks for a service can be defined by setting commit_key, commit_file and commit_service keys under grommunio-dbconf/<service> to a valid command (see below).
β Available Commit Commands β
the following commands are available:
Key
postconf -e $ENTRY
File
postconf -e $FILE_S && systemctl reload postfix
Service
systemctl reload $SERVICE
systemctl restart $SERVICE
π Macros π
as the whitelisted commands might be hard to memorize and may be changed in the future, macros are provided that expand to whitelisted commands. cute little shortcuts, fr fr.
the following macros are defined:
Key
#POSTCONF -> postconf -e $ENTRY
File
#POSTCONF -> sudo postconf -e $FILE_S && systemctl reload postfix
Service
#RELOAD -> systemctl reload $SERVICE
#RESTART -> systemctl restart $SERVICE
π§ Command Variable Expansion π§
commands can contain $-prefixed variables that are expanded before execution. the literal $$ can be used to generate a single $.
the following variables are valid:
ENTRYβ Expands to$KEY=$VALUE(key level only).FILEβ Complete content of the modified file as newline separatedkey=valueentries (file level only).FILE_Sβ Complete content of the modified file as space separatedkey=valueentries (file level only).FILENAMEβ Name of the modified file (key and file level).KEYβ The modified key (key level only).SERVICEβ Name of the modified service.VALUEβ New value of the modified key (key level only).
π See Also π
grommunio-admin(1)grommunio-admin-config(1)grommunio-admin-mconf(1)grommunio-dbconf(1)
that's the whole grommunio-admin-dbconf(1) page, bestie β signed off by the footer, mwah π
π¦ where this page comes from
- alpine 3.24: grommunio-admin-api-doc 1.18-r0 Β· AGPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms