| SPAMDB(8) | System Manager's Manual | SPAMDB(8) |
spamdb — spamd
database tool
spamdb |
[-adGTt] [keys ...] |
spamdb manipulates the spamd database in
/var/db/spamd used for
spamd(8).
The options are as follows:
-aspamdb updates the entry's time last seen to
now.-d-G-d
option.-T-a or -d option.-t-a or
-d option.If adding or deleting a SPAMTRAP address
(-T), keys should be specified
as email addresses:
spamtrap@mydomain.orgOtherwise keys must be numerical IP addresses.
If invoked without any options, spamdb
lists the contents of the database in a text format. If one or more
keys are specified, only matching entries will be
printed.
For SPAMTRAP entries the format is:
type|mailaddresswhere type will be SPAMTRAP and mailaddress will be the email address for which any connections received by spamd(8) will be blacklisted if mail is sent to this address.
For TRAPPED entries the format is:
type|ip|expirewhere type will be TRAPPED, IP will be the IP address blacklisted due to hitting a spamtrap, and expire will be when the IP is due to be removed from the blacklist.
For GREY entries, the format is:
type|source
IP|helo|from|to|first|pass|expire|block|passFor WHITE entries, the format is:
type|source
IP|||first|pass|expire|block|passThe fields are as follows:
Note that times are in seconds since the Epoch, in the manner returned by time(3). Times may be converted to human readable format using:
$ date -r <value>/var/db/spamd
The spamdb command appeared in
OpenBSD 3.5.
| October 29, 2017 | openbsd |