.\" $OpenBSD: spamdb.8,v 1.1 2004/02/26 07:28:55 beck Exp $ .\" .\" Copyright (c) 2004 Bob Beck. All rights reserved. .\" .\" Permission to use, copy, modify, and distribute this software for any .\" purpose with or without fee is hereby granted, provided that the above .\" copyright notice and this permission notice appear in all copies. .\" .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" .Dd February 16, 2004 .Dt SPAMDB 8 .Os .Sh NAME .Nm spamdb .Nd spamd database tool .Sh SYNOPSIS .Nm spamdb .Bk -words .Op Fl a Ar ip .Op Fl d Ar ip .Ek .Sh DESCRIPTION .Nm manipulates the spamd database in .Pa /var/db/spamd used for .Xr spamd 8 greylisting. .Pp The options are as follows: .Bl -tag -width Ds .It Fl a Ar ip Add or update a whitelist entry for IP address "ip". Updates time last seen to now. .It Fl d Ar ip Delete a whitelist entry for IP address "ip". .El .Pp If invoked without any arguments, .Nm lists the contents of the database in a text format. .Sh FILES /var/db/spamd .Sh SEE ALSO .Xr spamd.conf 5 , .Xr spamd 8 , .Xr spamd-setup 8 .Sh HISTORY The .Nm command appeared in .Ox 3.5 .