| DBMAIL-UTIL(8) | DBMAIL-UTIL(8) |
NAME
dbmail-util - maintains the integrity and cleanliness of the DBMail datatables.
SYNOPSIS
dbmail-util [options] --all-checks dbmail-util [options] --test-integrity dbmail-util [options] --check-body dbmail-util [options] --purge-deleted dbmail-util [options] --set-deleted dbmail-util [options] --clear-replycache time dbmail-util [options] --clear-iplog time dbmail-util [options] --rehash
DESCRIPTION
The dbmail-util program offers a database cleanup and integrity check. All messages set for deletion (status 2) will be marked for final deletion (status 3). All message marked for final deletion will be cleared from the database. The integrity check will check for unconnected mimeparts, headervalues, messages and mailboxes.
By default, checks are read-only. Pass the --no option to respond no to any prompts. Pass the --yes option to make read-write changes, responding yes to any prompts.
OPTIONS
-b, --check-body
-d, --set-deleted
-p, --purge-deleted
-s, --remove-invalid-aliases
-t, --test-integrity
-a, --all-checks
-r, --clear-replycache time
-l, --clear-iplog time
--rehash
--erase days
--move days
--inbox name
--trash name
Common options
-n, --no
-y, --yes
Maintenance options
--rehash
-e, --check-empty-cache
Migration options
-M, --migrate-legacy limit
-m, --migrate-limit limit
COMMON OPTIONS
-f, --config configfile
Use dbmail-<utility> --help to show the default location.
-q, --quiet
-v, --verbose
-V, --version
-h, --help
RETURN VALUES
Returns 3 when errors are found but could not be fixed due to failure, 2 when errors are found but -y was not provided or -n was provided, 1 when errors are found and fixed successfully, 0 when no errors are found.
EXAMPLES
Regular maintenance can be run as a regular cron job:
dbmail-util --all --yes --verbose
To set all messages with the DELETE status to PURGE status, and permanently remove all messages previously set to PURGE status:
dbmail-util --set-deleted --purge-deleted -yes
To get a listing of the changes that would be performed for all actions:
dbmail-util --all --no
To remove all IP log entries more than three days old:
dbmail-util --clear-iplog 72h --yes
After upgrading from DBMail 2.0 or truncating the cache tables, run this command to populate the cache:
dbmail-util --check-body --yes
SEE ALSO
dbmail(1), dbmail.conf(5), dbmail-deliver(1), dbmail-export(8), dbmail-httpd(8), dbmail-imapd(8), dbmail-lmtpd(8), dbmail-pop3d(8), dbmail-sieved(8), dbmail-sievecmd(8), dbmail-users(8), dbmail-util(8)
BUGS
For the latest announcements, please subscribe to the DBMail announce mailing list[1]
For general discussion, please subscribe to the DBMail general mailing list[2]
If you experience an issue with DBMail, please report it on the DBMail Bug Tracker[3]. It may be helpful to have a debug log available.
LICENSE
DBMail and its components are distributed under the terms of the GNU General Public License Version 2. Copyrights are held variously by the authors listed below.
AUTHOR(S)
DBMail is a collaborative effort among the core developers listed below and the tremendous help of the testers, patchers and bug hunters listed in the AUTHORS and THANKS files found in the DBMail source distribution.
Alan Hicks Persistent Objects Ltd https://p-o.co.uk Eelco van Beek Aaron Stone Paul J Stevens Roel Rozendaal Open Source Engineer NFG Net Facilities Group BV Ilja Booij Palo Alto, CA USA http://www.nfg.nl IC&S http://www.ic-s.nl
AUTHOR
Alan Hicks <ahicks@p-o.co.uk>
NOTES
- 1.
- DBMail announce mailing list
- 2.
- DBMail general mailing list
- 3.
- DBMail Bug Tracker
| 10/03/2025 |