[Mimedefang] Max recipient

Jim McCullars jim at info.uah.edu
Tue Aug 31 14:43:45 EDT 2004



On 31 Aug 2004, CONTRERAS, Pablo wrote:

> Hi, I want set mimedefang for max recipients with ingoing mail, when the
> number of recipients is more than 5, then mimedefang? reply with a
> message, for example: our server not admit more than 5 recipient,
> Is it posible?

   This should do it (untested!):

     sub filter_begin {
     #
     #  reject email with too many recipients
     #
       if (@Recipients > 5) {
         return action_bounce("Too many recipients, message refused")
       }
     }





More information about the MIMEDefang mailing list