[Mimedefang] Max size of mailbto be handled by MIMEDefang
David F. Skoll
dfs at roaringpenguin.com
Wed Oct 5 07:15:20 EDT 2005
Andreas Dahlén wrote:
> Is it possible to only have MIMEDefang to work on message less than a
> certain size?
> I could do a sizecheck on INPUMSG in filter_begin, but then MIMEDefang
> already started to process the message.
Well, the best you can do is:
If the sending relay uses the ESMTP SIZE=xxx parameter, you could
check it in filter_sender, and return ('ACCEPT_AND_NO_MORE_FILTERING', 'ok')
if it's above your limit. Check the array @ESMTPArgs for the
You still have to check the size of INPUTMSG in filter_begin, because not
all sending relays will use the SIZE=xxx parameter.
More information about the MIMEDefang