#!/usr/bin/perl use strict; use IO::File; my $rblcheck = "/path/to/rblecheck"; my $rblcheck_opts = "-t -c -s rbl.maps.vix.com -s dul.maps.vix.com -s relays.radparker.com"; my $logfiledir = "/path/to/logfiledir"; &main; sub _random_string { my $chars = shift; my $fh = new IO::File("$logfilename" or warn "could not open logfile ($logfilename)"; print STDERR "$ipaddr\n\n"; print STDERR "$rblsays\n"; print STDERR "recordio of smtp conversation follows line\n---------------------\n"; exec "recordio", @execlist; die "exec failed"; } else { exec @execlist; die "exec failed"; } }