[Mimedefang] $helo filter checks

David F. Skoll dfs at roaringpenguin.com
Thu Oct 2 08:15:01 EDT 2003


On Wed, 1 Oct 2003, Philip Clever wrote:

>  elsif ($helo =~ /mydomain\.net$/i) {
>         if ($hostip ne '127.0.0.1' or
>         $hostip !~ /^xx\.xx\.xxx\.\d{1,3}$/ or
>         $hostip !~ /^xx\.xx\.xxx\.\d{1,3}$/ or

Bad logic.  Your or's should be and's.

>                 return (0, "Connect rejected! - $hostip is not
> mydomain.net");

return (0, 'xxx') is deprecated.  Use return('REJECT', 'xxx') instead.

Regards,

David.



More information about the MIMEDefang mailing list