Try if (scalar(@Recipients) > 5) which I believe will work in all cases or
(($#Recipients + 1) > 5) which I know will work

KAM

> # Why doesn't work this "if"
> if ($RelayAddr ne "192.198.100.10"){
>        #  reject email with too many recipients
>          if (@Recipients > 5) {
>            return action_bounce("Too many recipients, message refused")
>          }
>        }
> }

_______________________________________________
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to