on feedback from bob:
- add last modification time to database
- add -m to filter on last modification time
- add -B and -W to filter on black and white counters
- add -d to delete entries
this allows things like
relaydb -db -W 0 -m +30
deleting all blacklist entries with zero white counter that
haven't changed since more than a month.
Warning: the database format changed, requiring an export with
the old binary (relaydb -vl >text), deletion of the database
and re-import with the new binary (relaydb -i text).
- fix an off-by-one sscanf length argument (processing the local
database, not external data), from Anil Madhavapeddy.
- fix -b/-w confusion for the -r example in the man page,
reported by several people.
--
relaydb is a mail header analyzer that builds a database of IP addresses
either known as legitimate senders or spammers.
relaydb doesn't itself classify mails as legitimate or spam, that deci
sion needs to be reached through other means. Neither does relaydb block
spam itself. It merely provides a list of IP addresses to block through
other means, like spamd(8) and pf(4).
relaydb reads a single mail from stdin, analyzes the Received: header
lines and updates blacklist and whitelist counters for each IP address.
WWW: http://www.benzedrine.cx/relaydb.html
Initial version submitted to dhartmei@ who came back to me with this.