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") > } > } > }