OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Message size limit per user

From: mouss (mlist.onlyfree.fr)
Date: Tue Jul 24 2007 - 14:26:27 CDT


Alejandro Cabrera Obed wrote:
> Dear all, I have Postfix 2.3.8 and Courier/LDAP as my mail server.
>
> I need to define a message size limit per user, for example:
>
> joemydomain.com ---- 2 MB message size limit
> bradmydomain.com ----- 10 MB message size limit
> etc....
>

what would you do if the message is sent to multiple recipients, with
different limits?

> I know the line "message_size_limit = xxx " from main.cf sets in xxx the
> message size limit for all the mail system users, but not per user.
>
> Where can I configure this feature ???
>

a policy service that is called at recipient and data stages and that
"keeps state" may help, but this is somewhat cumbersome. The reason is
that clienst may not advertize the size (and even if they advertize it,
you can trust this), so you need to wait until mail was actually read,
that is end of data, but at this time, you have many recipients...