OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Can postfix notify to postmaster when over quota ?

From: Alain NAKACHE (alainalinto.net)
Date: Wed May 10 2006 - 01:41:09 CDT


Victor Duchovni a écrit :
> On Tue, May 09, 2006 at 10:19:32AM +0200, Michael Monnerie wrote:
>
>
>> On Dienstag, 9. Mai 2006 02:44 Truong Tan Son wrote:
>>
>>> Can I set ?Postfix notifies to Postmaster or oot when over quota of
>>> user's mail ?
>>>
>> This has been asked yesterday: NO. Postfix doesn't support quotas.
>>
>
> Well, not supporting *maildir quotas*, is different from postmaster
> notices when delivery agents that do support quotas (local or virtual
> using mbox or LMTP reporting 552, or ...). This said, there is no
> separate notification class for over-quota messages.
>
> http://www.postfix.org/postconf.5.html#notify_classes
>
>

A corollary with this maildir quota management with Postfix would be :
How Is it possible to build a mechanism in Postfix to accept SMTP
incoming mail if and only if Postfix queue doesn't contain overquota
deferred email for a recipient ?

Courier-smtp already include such a mechanism by testing exit_code=78
when a mail can't be delivered because of overquota in a maildir.