[Mimedefang] Helo Checking

Don Killen donk at impzilla.com
Wed Sep 27 15:48:14 EDT 2006


Hi all,
 
   When I insert this snippet into my mimedefang-filter my slaves all get busy and shut down......any Ideas?
 
Don Killen
sub filter_sender {
  my($sender, $ip, $name, $helo) = @_;
  return('CONTINUE', "OK") if ($ip eq "72.242.108.6");   # no further checking if localhost
  if ($helo =~ /(^|.)granis.net$/i) {
    if ($ip !~ /^72.242.108./) {
          return('REJECT', "Connect rejected - $ip is not granis.net");
    }
  }
  return('CONTINUE', "OK");
}




More information about the MIMEDefang mailing list