Man page - cyrus-cyr_dbtool(8)
Packages contas this manual
- cyrus-cyr_expire(8)
- cyrus-cvt_xlist_specialuse(8)
- cyrus-sievec(8)
- cyrus-chk_cyrus(8)
- cyrus-deliver(8)
- cyrus-reconstruct(8)
- cyrus-cyr_buildinfo(8)
- cyrus-proxyd(8)
- cyrus-lmtpd(8)
- cyrus-sieved(8)
- cyrus.conf(5)
- krb.equiv(5)
- cyrus-cyr_deny(8)
- cyrus-ctl_mboxlist(8)
- cyrus-pop3proxyd(8)
- cyrus-cyr_info(8)
- cyrus-restore(8)
- ctl_backups(8)
- cyrus-arbitronsort(8)
- cyrus-tls_prune(8)
- ctl_conversationsdb(8)
- cyrus-smmapd(8)
- cyrus-cyr_ls(8)
- cyrus-fud(8)
- cyrus-relocate_by_id(8)
- cyrus-ptexpire(8)
- cyrus-dump(8)
- imapd.conf(5)
- cyrus-cyrdump(8)
- cyrus-backupd(8)
- cyrus-ctl_cyrusdb(8)
- cyr_virusscan(8)
- cyrus-ptloader(8)
- cyrus-cyr_df(8)
- cyrus-makedirs(8)
- cyrus-arbitron(8)
- cyrus-cvt_cyrusdb(8)
- cyrus-quota(8)
- cyrus-mbtool(8)
- cyrus-lmtpproxyd(8)
- cyrus-ptdump(8)
- cyrus-cyr_userseen(8)
- cyrus-ctl_deliver(8)
- cyrus-mbexamine(8)
- cyrus-master(8)
- cyrus-mbpath(8)
- cyrus-unexpunge(8)
- cyrus-timsieved(8)
- cyrus-notifyd(8)
- cyr_backup(8)
- cyrus-ipurge(8)
- cyrus-ctl_zoneinfo(8)
- cyrus-cyr_dbtool(8)
apt-get install cyrus-common
Manual
| CYR_DBTOOL(8) | Cyrus IMAP | CYR_DBTOOL(8) |
NAME
cyr_dbtool - Cyrus IMAP documentation
Manage Cyrus databases
SYNOPSIS
cyr_dbtool [ -C config-file ] [ -M ] [ -n ] [ -o ] [ -T ]
db-file db-backend action [ key ] [ value ]
DESCRIPTION
cyr_dbtool is used to manage a cyrusdb file. The usable actions are:
get <key>
set <key> <value>
delete <key>
consistency
repack
You may omit key or key/value and specify one per line on stdin. Keys are terminated by tab or newline, values are terminated by newline.
Running without any options will list the available database backends and usable actions.
The consistency action runs a consistency check on the DB by calling 'myconsistent' on it.
The repack action will compress the database by removing stale data on backends which support it. It's a NOOP otherwise.
cyr_dbtool reads its configuration options out of the imapd.conf(5) file unless specified otherwise by -C.
NOTE:
TIP:
OPTIONS
- -C config-file
- Use the specified configuration file config-file rather than the default imapd.conf(5).
- -M, --improved-mboxlist-sort
- Uses improved MBOX list sort
- -n, --create
- Create the database file if it doesn't already exist.
- -T, --use-transaction
- Use a transaction to do the action (most especially for 'show') - the default used to be transactions.
EXAMPLES
This series of examples address manipulating the user_deny.db database, which is used to deny users access to specific services. This is typically a Cyrus "flat" format database.
user_deny.db is indexed by userid and each record contains the database version number (currently 2), a list of "wildmat" patterns specifying Cyrus services to be denied, and a text message to be displayed to the user upon denial. The service names to be matched are those as used in cyrus.conf(5). cyr_deny(8) provides more convenient way to manage user_deny.db.
NOTE:
cyr_dbtool /var/lib/imap/user_deny.db flat baduser "2<tab>pop3,imap<tab>Denied"
cyr_dbtool /var/lib/imap/user_deny.db flat show
cyr_dbtool /var/lib/imap/user_deny.db flat get baduser
FILES
/etc/imapd.conf
SEE ALSO
imapd.conf(5)
AUTHOR
The Cyrus Team, Nic Bernstein (Onlight), Jeroen van Meeuwen (Kolab Systems)
COPYRIGHT
1993–2025, The Cyrus Team
| June 27, 2025 | 3.10.2 |