Try this
if ($RelayAddr ne '192.198.100.10') {
if (scalar(@Recipients) > 5) {
return action_bounce("Too many recipients, message refused")
}
}
Egor Moskvichev
----- Original Message -----
From: "CONTRERAS, Pablo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 02, 2004 2:32 AM
Subject: [Mimedefang] many recipients
> Hi, I test this and work ok!, my server run with relay of internet
> what can I do for apply this filter only with address external
> I try to make this but doesn't work
> I try this
> sub filter_begin {
> # 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