[Mimedefang] Still outbound messages are getting blocked by s pamassassin
Matthew.van.Eerde at hbinc.com
Matthew.van.Eerde at hbinc.com
Fri Jul 9 11:21:03 EDT 2004
> From: Vivek Kumar [mailto:vivekk at gorave.net]
> my $internal_net1 = "191.0.0";
> my $internal_net2 = "191.0.1";
> $hostip=~ /^(\d+\.\d+\.\d+)./ ;
> my $mailip = $1;
> if($mailip eq $internal_net1 || $mailip eq $internal_net2) {
This won't do what you want. || binds more tightly than eq so you're
effectively saying
$mailip eq ($internal_net1 || $mailip) eq $internal_net2
which in turn is the same as
$mailip eq $internal_net1 eq $internal_net2
which is the same as either
1 eq $internal_net2
or
0 eq $internal_net2
which is always
0
so your "if" condition will never be true.
Try
$mailip eq $internal_net1 or $mailip eq $internal_net2
or
($mailip eq $internal_net1) || ($mailip eq $internal_net2)
Matthew.van.Eerde at hbinc.com 805.964.4554 x902
Hispanic Business Inc./HireDiversity.com Software Engineer
perl -e"map{y/a-z/l-za-k/;print}shift" "Jjhi pcdiwtg Ptga wprztg,"
More information about the MIMEDefang
mailing list