On Thu, 1 Oct 2009 12:26:43 +0200, Toni Mueller wrote:

>Hi,
>
>On Wed, 30.09.2009 at 09:12:16 -0600, Bob Beck <[email protected]> wrote:
>> Again? sheesh, it wasn't supposed to, we had talked to them.
>
>yes, again. I get a 404 all the time.
>
>
>Kind regards,
>--Toni++
>
Me too, but I learned my lesson first time around. Now I have a cronjob
that runs a script which attempts to get the file. If that fails the
existing local nixspam file is used.

crontab:
31      *       *       *       *       /root/bin/nixpix

nixpix:
#!/bin/sh
cd /root/data
rm -f nixspam
ftp http://www.openbsd.org/spamd/nixspam.gz
if [ $? -eq 0 ] ; then
        gunzip nixspam.gz
        cut -d " " -f 1 nixspam >/var/db/nixspam
fi
exit

spamd.conf:
(relevant lines only)
# Nixspam recent sources list.
#       :method=http:\
#       :file=www.openbsd.org/spamd/nixspam.gz
# Mirrored from http://www.heise.de/ix/nixspam
nixspam:\
 :black:\
        :msg="Your address %A is in the nixspam list\n\
        See http://www.heise.de/ix/nixspam/dnsbl_en/ for details":\
        :method=file:\
        :file=/var/db/nixspam

My guess is that it's better to have a stale nixspam file than none. If
you don't agree then don't do this.

FWIW,
Rod/
---

*** NOTE *** Please DO NOT CC me. I <am> subscribed to the list.
Mail to the sender address that does not originate at the list server is 
tarpitted. The reply-to: address is provided for those who feel compelled to 
reply off list. Thankyou.

Rod/
---
This life is not the real thing.
It is not even in Beta.
If it was, then OpenBSD would already have a man page for it.

Reply via email to