On Sat, Dec 12, 2009 at 03:03:30PM +0530, prasanna wrote:
>          i have installed postfix 2.6.5, it is working fine.  I am
> using dovecot IMAP server, where i have limited user mailbox size to
> 5MB.  Whenever user quota  is exceeded, Postfix sends failure bounce
> template mail to the sender immediately indicating Disk Quota
> exceeded message.  But i want the mail to be stored or queued, so
> that the mail can be delivered to user either by increasing the his
> quota for time being or user itself deleting some mails in his inbox
> so that the new queued mail is delivered to him.  Can anyone suggest
> how to do this.

Patient:  "Doctor, it hurts when I do this."
Doctor:   "So don't do that."

I can suggest how NOT to get in this situation: use a more reasonable
quota? On today's bloated Internet, with HTML mail and graphics and
UTF-8, 5MB is not going to go very far.

It sounds like you might be using the Dovecot deliver LDA. If you can
tell it to return a temporary error, the overquota mail will remain
in queue until $maximal_queue_lifetime runs out. If this is what you
are in fact using, consult the Dovecot wiki and followup to the
Dovecot list. Likewise, if you are using some other external delivery
agent, follow up with that software.

A real ugly Postfix hack that would do what you asked (and possibly
cause other issues, so I don't recommend it) is to set "soft_bounce =
yes". 
-- 
    Offlist mail to this address is discarded unless
    "/dev/rob0" or "not-spam" is in Subject: header

Reply via email to