General-Purpose Mail Filter
mfdbtool utility is provided for performing various
operations on the
To list the contents of a database, use --list option. When used without any arguments it will list the ‘cache’ database:
$ mfdbtool --list email@example.com success Thu Aug 24 15:28:58 2006 baccl@EDnet.NS.CA not_found Fri Aug 25 10:04:18 2006 firstname.lastname@example.org not_found Fri Aug 25 10:11:57 2006 email@example.com:220.127.116.11 not_found Fri Aug 25 14:16:06 2006
You can also list data for any particular key or keys. To do so,
give the keys as arguments to
$ mfdbtool --list firstname.lastname@example.org email@example.com:18.104.22.168 firstname.lastname@example.org success Thu Aug 24 15:28:58 2006 email@example.com:22.214.171.124 not_found Fri Aug 25 14:16:06 2006
To list another database, give its format identifier with the --format (-H) option. For example, to list the ‘rate’ database:
$ mfdbtool --list --format=rate firstname.lastname@example.org Wed Sep 6 19:41:42 2006 139 3 0.0216 6.82e-06 email@example.com Wed Sep 6 20:26:24 2006 0 1 N/A N/A
The --format option can be used with any database management option, described below.
Another useful operation you can do while listing ‘rate’ database is the prediction of estimated time of sending, i.e. the time when the user will be able to send mail if currently his mail sending rate has exceeded the limit. This is done using --predict option. The option takes an argument, specifying the mail sending rate limit, e.g. (the second line is split for readability):
$ mfdbtool --predict="180 per 1 minute" firstname.lastname@example.org Wed Sep 13 03:53:40 2006 0 1 N/A N/A; free to send email@example.com Wed Sep 13 15:46:07 2006 7 2 0.286 0.0224; in 46 sec. on Wed Sep 13 15:49:00 2006
Notice, that there is no need to use --list --format=rate along with this option, although doing so is not an error.
To delete an entry from the database, use --delete option, for example: mfdbtool --delete firstname.lastname@example.org. You can give any number of keys to delete in the command line.
This document was generated on January 3, 2019 using makeinfo.Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.