[Mimedefang] MIMEDefang 2.28-BETA-2 is available

Russ GilmanHunt rgilmanhunt at hotp.com
Thu Dec 12 14:28:01 EST 2002


Ok, I admit that I'm stumped.
I can figure out placing this sub in /etc/mail/mimedefang-filter, but
how do I call it?

What I did was place this just below the section for filter-begin, and
then go back up into filter-begin and insert this line: 
  filter_relay();
But then I get an error regarding "uninitialized value in 168" (the
first line of the filter_relay sub).

-Russ


> sub filter_relay {
>         my($relayaddress, $name, $helo) = @_;
>         if ($relayaddress eq "127.0.0.1" and $address =~ /^192\.168\.1\./) {
> 		    # Localhost or within the 192.168.1.* range, 
>                   # so bypass further filtering
>                 return("ACCEPT_AND_NO_MORE_FILTERING", "bypass");
>         } else {
> 	  # Not one of ours, keep filtering
>         return ("CONTINUE", "filter");
> 	  }
> }





More information about the MIMEDefang mailing list