On Thu, 13 May 2004 12:47:42 +0200 Michiel van Baak <[EMAIL PROTECTED]> wrote:
> Hi all, > > I'm trying to setup my spamd table in pf. > I used Daniel's script as he posted it on http://www.benzedrine.cx/relaydb.html as a > template for my own script (see below) > When I run my script it fails with the error: pfctl: Cannot allocate memory. > > Any idea how I can make this work? > > Some info about my setup: > OpenBSD griever.vanbaak.info 3.5 GENERIC#1 i386 Intel Pentium II ("GenuineIntel" > 686-class, 512KB L2 cache) > Build date 6 May > 144 MB RAM > 500 MB swap space > > my script to generate the spammers list, whitelist and pf tables: > > #!/bin/sh > cd /root/spamfilter > rm SBL.cidr > rm spammers.tmp > rm nonspammers.tmp > wget -q http://bliab.com/sbl/SBL.cidr.bz2 > bunzip2 SBL.cidr.bz2 > rsync rsync://rsync.cbl.abuseat.org/cbl/list.txt list.txt > relaydb -4lb -f /var/tmp/.relaydb > relay-black > relaydb -4lw -f /var/tmp/.relaydb > relay-white > cat SBL.cidr | grep -v '#' | cut -f 1 >>spammers.tmp > cat list.txt | grep -v '#' | grep -v '^:' >>spammers.tmp > cat relay-black >> spammers.tmp > cat relay-white >> nonspammers.tmp > cat mywhite >> nonspammers.tmp > pfctl -t spamd -Tr -f spammers.tmp > cat nonspammers.tmp | \ > pfctl -t spamd -vvTt -f - | \ > grep "^M " | grep -v "/" | \ > awk '{ printf("%s\n", $2); }' | \ > pfctl -t spamd -Td -f - > cat nonspammers.tmp | \ > awk '{ printf("!%s\n", $1); }' | \ > pfctl -t spamd -Ta -f - > > > -- > Michiel van Baak > http://lunteren.vanbaak.info > [EMAIL PROTECTED] Is there anyone willing to answer this question ? I tried google, irc and the pf documentation on the website. I really want this to work... Thanx -- Michiel van Baak http://lunteren.vanbaak.info [EMAIL PROTECTED] "Two of the most famous products of Berkeley are LSD and Unix. I don't think that this is a coincidence."
