|
NAMEspamdb —
spamd database tool
SYNOPSIS
DESCRIPTIONspamdb manipulates the spamd database in
/var/db/spamd used for
spamd(8).
The options are as follows:
If adding or deleting a SPAMTRAP address
( spamtrap@mydomain.org Otherwise keys must be numerical IP addresses. DATABASE OUTPUT FORMATIf invoked without any arguments,spamdb lists the
contents of the database in a text format. For SPAMTRAP entries the format is:
type|mailaddress where 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|expire where 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|pass For WHITE entries, the format is: type|source
IP|||first|pass|expire|block|pass The 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> SYNCHRONISATIONspamdb supports realtime synchronisation of white or
blacklist entries between a number of
spamd(8)
daemons running on multiple machines, using the -Y
option.
The following example will send a unicast synchronisation messages. whitelisting # /usr/local/sbin/spamdb -Y foo.example.org -a 1.2.3.4 2.3.4.5 # /usr/local/sbin/spamdb -Y foo.example.org -Y bar.example.org -a 1.2.3.4 blacklisting # /usr/local/sbin/spamdb -Y foo.example.org -ta 1.2.3.4 2.3.4.5 The IP send to peers is logged via
syslogd(8)
at !spamdb daemon.info /var/log/spamdb FILES/var/db/spamd/usr/local/etc/spamd/spamd.key SEE ALSOspamd.conf(5), spamd(8), spamd-setup(8), spamlogd(8)HISTORYThespamdb command appeared in OpenBSD
3.5.
Visit the GSP FreeBSD Man Page Interface. |