[Mimedefang] sendmail attachment limitation

David F. Skoll dfs at roaringpenguin.com
Sat Aug 2 10:48:00 EDT 2003


On Sat, 2 Aug 2003, Lucas Albers wrote:

> Is it possible to limit received attachment size per user via mimedefang?

That answer to any question of the form "Is it possible to do X with
MIMEDefang" is almost always "Yes, it is."

If you can program it in Perl, you can do it.  So to sketch out how to
solve this problem:

You need Perl code that looks at the recipient(s), looks up in a table what
the attachment size limit for each recipient is, looks at the size of each
MIME part (or the entire message -- your choice) and takes appropriate
action.

You may need to use stream_by_recipient() to split out mail for multiple
recipients.

--
David.



More information about the MIMEDefang mailing list