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?

_______________________________________________
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