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
_______________________________________________
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang