Re: spamd - nixspam list, September 30, 2009
Hi, On Wed, 30.09.2009 at 09:12:16 -0600, Bob Beck b...@ualberta.ca 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++
Re: spamd - nixspam list, September 30, 2009
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 b...@ualberta.ca 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.
Re: spamd - nixspam list, September 30, 2009
On Thu, 01.10.2009 at 21:16:30 +1000, Rod Whitworth glis...@witworx.com wrote: 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. I didn't check whether the stale file gets removed, but thought about using a different source instead. If spamd(8) could use RBLs in addition to static tables, that would ease the problem, too. So far, I can only use nixspam in my SpamAssassin configuration, which is a bit late. Kind regards, --Toni++
Re: spamd - nixspam list, September 30, 2009
On 2009-10-01 14:39, Toni Mueller wrote: I didn't check whether the stale file gets removed, but thought about using a different source instead. If spamd(8) could use RBLs in addition to static tables, that would ease the problem, too. The concept of RBLs aren't in line with the idea that spamd should use little of your resources and many resources for the spammer. Add RBL functionality between spamd and your smtp server, if you need.
Re: spamd - nixspam list, September 30, 2009
Rod Whitworth wrote: 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 Any particular reason why you don't use: zcat nixspam.gz | cut -d -f 1 /var/db/nixspam Obviously the above script must run before spamd-setup; how much sooner do you run it?
Re: spamd - nixspam list, September 30, 2009
On Thu, 01 Oct 2009 09:36:24 -0400, Frank Bax wrote: Rod Whitworth wrote: 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 Any particular reason why you don't use: zcat nixspam.gz | cut -d -f 1 /var/db/nixspam I was gunzip-ing it for inspection so I was lazy and used the already unzipped file. Then I had to add the guzip line to this script anyway. But you know how these things happen late at night... Obviously the above script must run before spamd-setup; how much sooner do you run it? 6 minutes. *** 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.
Re: spamd - nixspam list, September 30, 2009
On Fri, Oct 2, 2009 at 7:02 AM, Rod Whitworth glis...@witworx.com wrote: On Thu, 01 Oct 2009 09:36:24 -0400, Frank Bax wrote: Rod Whitworth wrote: 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 Any particular reason why you don't use: zcat nixspam.gz | cut -d -f 1 /var/db/nixspam I was gunzip-ing it for inspection so I was lazy and used the already unzipped file. Then I had to add the guzip line to this script anyway. But you know how these things happen late at night... Obviously the above script must run before spamd-setup; how much sooner do you run it? 6 minutes. *** 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. That would probably cause issues if the gunzip operation failed - you'd end up with an empty nixspam file. I'd do the same but check the return value of the gunzip operation before overwriting the nixspam file. I'd also streamline the script a bit: #!/bin/sh cd /root/data rm -f nixspam if ftp http://www.openbsd.org/spamd/nixspam.gz; then if gunzip nixspam.gz; then cut -d ' ' -f 1 nixspam /var/db/nixspam fi fi Diff: --- nixpix.orig Fri Oct 2 14:27:14 2009 +++ nixpix Fri Oct 2 14:27:10 2009 @@ -1,9 +1,9 @@ #!/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 +if ftp http://www.openbsd.org/spamd/nixspam.gz; then + if gunzip nixspam.gz; then + cut -d ' ' -f 1 nixspam /var/db/nixspam + fi fi exit I'd test this on something you don't care about first, just to be sure. -- Aaron Mason - Programmer, open source addict - Oh, why does everything I whip leave me?
spamd - nixspam list, September 30, 2009
Has anyone else noticed the nixspam list (via link) disappearing from the http://www.openbsd.org/spamd/ page today? Randy -- [demime 1.01d removed an attachment of type APPLICATION/DEFANGED which had a name of randy.18526DEFANGED-vcf]
Re: spamd - nixspam list, September 30, 2009
Again? sheesh, it wasn't supposed to, we had talked to them. 2009/9/30 K.R. (Randy) Lewis ra...@rtmx.net: Has anyone else noticed the nixspam list (via link) disappearing from the http://www.openbsd.org/spamd/ page today? Randy -- [demime 1.01d removed an attachment of type APPLICATION/DEFANGED which had a name of randy.18526DEFANGED-vcf]