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: Andrzej Adam Filip (anfixl.wp.pl)
Date: Thu Jul 26 2007 - 17:49:33 CDT


Magnus Bäck wrote:
> On Tuesday, July 24, 2007 at 19:36 CEST,
> Alejandro Cabrera Obed <acabrerasintys.gov.ar> 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....
>>
>> 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 ???
>
> You can't, because
>
> a) the message size isn't known until the whole message has been
> received, and

Sending host *MAY* provide "size hint" in "MAIL FROM:".

> b) when the whole message has been received you cannot reject the
> message for some users but allow it for others. It's either
> accept or reject for all recipients.

SMTP have been designed long time ago and "the requirements has changed"

> This has been discussed several times before, so you can find more
> elaborate discussions in the archives.

--
[pl>en: Andrew] Andrzej Adam Filip : anfipriv.onet.pl : anfixl.wp.pl
Home site: http://anfi.homeunix.net/