[Mimedefang] limit message size

Kevin A. McGrail kmcgrail at pccc.com
Fri Apr 23 08:03:25 EDT 2004


I would do this through sendmail such as define(`confMAX_MESSAGE_SIZE',
`10000000')dnl.

However, I guess you could do something in filter() like this:

$sizelimit = 1048576; #1MB limit
unless (-s "$entity->bodyhandle->path" <= $sizelimit) {
  return action_drop_with_warning("Message is larger than limit.\n");
}

Not really sure you are going to find many people doing overall message size
limits through MD.

KAM

> I want to use mimedefang to limit incoming and outgoing messages size.
> Could anyone suggest me or tell me HOW-TO?



More information about the MIMEDefang mailing list