[Mimedefang] filter in & out
Stefano McGhee
SMcGhee at ARCweb.com
Fri Apr 9 15:51:36 EDT 2004
Hello David,
>
> sub filter_sender {
> my ($sender, $ip, $hostname, $helo) = @_;
> if ($ip =~ /192.168.1.*/i) {
> return ('ACCEPT_AND_NO_MORE_FILTERING');
> }
> }
>
Doesn't this or shouldn't this be in filter_relay? You do have access to
$ip in filter_sender, but filter_relay makes more sense for this. Also,
your regex might be better as
$ip=~ /^192\.168\.1\./
Note the escaping for the dots. Finally, try using
return ('ACCEPPT_AND_NO_MORE_FILTERING',"ok")
Instead of what you had.
Hope this helps,
Stefano
More information about the MIMEDefang
mailing list