OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: How to limit the maximum number of attachments for incoming emails?

From: Victor Duchovni (Victor.DuchovniMorganStanley.com)
Date: Thu Apr 19 2007 - 13:04:54 CDT


On Thu, Apr 19, 2007 at 01:52:10PM -0400, Wietse Venema wrote:

> Victor Duchovni:
> > On Thu, Apr 19, 2007 at 07:39:24PM +0200, Luca Manganelli wrote:
> >
> > > On 4/19/07, Victor Duchovni <Victor.Duchovnimorganstanley.com> wrote:
> > > >Postfix only limits the nesting depth of MIME encapsulation ( multipart or
> > > >message inside multipart or message inside ...). Postfix does not limit
> > > >the count of consecutive un-nested MIME Entities. If this is important
> > > >to you (why?), you need a pre-queue proxy filter or MILTER that has
> > > >the expected MIME feature-set.
> > >
> > > Because we want to migrate from Domino server to Postfix. One features
> > > of Domino is the number limit of the attachments.
> >
> > Just because the feature is there, does not mean it is useful. How is
> > this useful?
>
> There is no reason why it could not be added to Postix, but I too
> wonder what problem it would solve. Setting a low limit will surely
> cause legitimate mail to be blocked.

Most likely scenario, forwarded HTML page with associated images:

        Content-Type: multipart/related; type=text/html; boundary=b

        --b
        Content-Type: text/html
        Content-Trasfer-Encoding: quoted-printable

        ... <IMG SRC=3D"cid:1"></IMG> ...
        ... <IMG SRC=3D"cid:2"></IMG> ...
        ... etc ...
        ... <IMG SRC=3D"cid:50"></IMG> ...

        --b
        Content-Type: image/gif
        Content-Id: <1>
        Content-Trasfer-Encoding: base64

        ...

        --b
        Content-Type: image/gif
        Content-Id: <2>
        Content-Trasfer-Encoding: base64

        ...

        --b

        ... etc ...

        --b
        Content-Type: image/gif
        Content-Id: <50>
        Content-Trasfer-Encoding: base64

        ...

        --b--

--
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majordomopostfix.org?body=unsubscribe%20postfix-users>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.