OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: 4xx or 5xx instead of bounce when quota exceeded

From: Magnus Bäck (magnusdsek.lth.se)
Date: Fri Mar 31 2006 - 07:46:02 CST


On Friday, March 31, 2006 at 07:59 CEST,
     Mikhail Asyaev <mishacsi.ru> wrote:

> after being listed in bl.spamcop.net 3 times in a row for sending
> unsolicited bounces, I decided to get rid of bounces whenever it
> is possible.
> My question is :
> is it possible to reject mail with 4xx code during SMTP session, if
> message size would exceed the quota defined with mailbox_size_limit
> or virtual_mailbox_limit ?

Postfix has no built-in support for this. You can implement a policy
server or periodically update an access map that rejects messages to
users that have reached their quota.

> Or should it be rejected with 5xx code instead ? The advantage of 4xx,
> in my opinion, is that mail gets delivered when user finally cleans
> his mailbox while with 5xx message is lost, and user has to resend
> message hoping that the recipient has cleaned his mailbox.

If your over-quota users at all tend to clean up their mailboxes I guess
4xx would appropriate, but I can imagine that in most cases over-quota
mailboxes are abandoned and never will be emptied. But this depends on
your type of users and the service you have promised to provide them
with.

[...]

--
Magnus Bäck
magnusdsek.lth.se