Dougal Campbell's geek ramblings

WordPress, web development, and world domination.

SpamValve Download

I only had a couple of responses to my call for SpamValve testers. One of the testers has already begun using SpamValve on his FreeBSD server. The other is tied up at the moment, but is going to attempt to adapt it to work on a Linux server sometime next week.

In the meantime, I’ve started using it to filter spam hits to my mail service. This was accomplished with a one-liner:

tail -0f /var/log/maillog | \
perl -e 'while(<>){ m/Mail from (.*) rejected/; \
system("/usr/local/sbin/svupdate", $1) if $1;}'

The command above watches the end of my sendmail log for entries indicating messages rejected by RBL checks. When it matches one, it sends the IP number to svupdate, which updates the spam counter for that host. That’s how easy it can be to use SpamValve to monitor a network service.

That said, I’m going to go ahead and make the code generally available. Obviously, feedback is welcome.

Download SpamValve: .ZIP (15K) or .tar.gz (11K)

I’m dubbing this SpamValve Version 1.0-alpha-2 “Hyrax”.

About Dougal Campbell

Dougal is a web developer, and a "Developer Emeritus" for the WordPress platform. When he's not coding PHP, Perl, CSS, JavaScript, or whatnot, he spends time with his wife, three children, a dog, and a cat in their Atlanta area home.
This entry was posted in Servers, Services, Spam and tagged , , , , , . Bookmark the permalink.

10 Responses to SpamValve Download

  1. Pingback: Blogs Of The Day » popular articles on WordPress blogs

  2. Pingback: The War on Spam

  3. researcher says:

    did you ever see that RSSfeed of this entry?
    it make a mess of my reader.
    please use an image of the code
    you like to show us
    not the code itself please :)

  4. Dougal says:

    Sorry about that. When I cut and pasted the code sample, I forgot to escape the < character. Fixed.

  5. Pingback: I am … unhindered by talent » Blog Archive » A WordPress security patch and 2 other things to check out later

  6. Pingback: Tim Hardy

  7. Pingback: Tim Hardy

  8. Pingback: Weblog Tools Collection » All comments are off (for now)

  9. Pingback: geek ramblings » Some blog spam cases you might want to watch for

  10. Pingback: Docunext

Leave a Reply

%d bloggers like this: