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 [SMTP2]

From: Andrzej Adam Filip (anfixl.wp.pl)
Date: Fri Jul 27 2007 - 06:03:33 CDT


mouss wrote:
> Andrzej Adam Filip wrote:
>> 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:".
>>
>
> Then I'll patch the code to claim a small hint :{
>
>>
>>> 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"
>>
>
> ask the IETF to replace SMTP with LMTP
> and if you are rich, pay the whole world to "upgrade". :-)

As you pointed out (E)SMTP is so widespread that any attempt to change
it without backward compatibility would be "*very* challenging".

(E)SMTP is loosing ground so do not *joke* about "worldwide upgrade".
I am a postmaster, for me it is not funny.

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