[Dovecot] Postfix aliases with quota-status service
Timo Sirainen
tss at iki.fi
Tue Aug 6 21:27:20 EEST 2013
On 6.8.2013, at 20.57, Thomas Leuxner <tlx at leuxner.net> wrote:
> * Timo Sirainen <tss at iki.fi> 2013.08.06 19:42:
>
>> The idea behind quota_grace is that the last mail would be allowed to take the user somewhat over quota (e.g. up to 109% quota usage). On the next mail delivery user is already over quota, so the size of the mail is irrelevant because a mail of any size will be rejected. The initial quota-status implementation didn't even support SIZE extension since I didn't remember it existed.
>
> I'm referring to the Postfix side _only_ or the initial SMTP Handshake if you like. My point is that there is no safe way to reject mails at this level *if* the remote server doesn't play nice. I think this was the whole point of writing a policy service for Postfix. I'm not *talking* about quotas that will be handled by the delivery agents...
Either you're still misunderstanding me, or vice versa. The quota rejections can be done complete in SMTP side even without SIZE:
1) quota at 99% :
MAIL FROM:<sender at example.com>
250 2.1.0 Ok
RCPT TO:<tss at dovecot.org>
250 2.1.0 Ok
DATA
...
.
250 2.0.0 Ok: queued as 12345
2) quota is now at 103% :
MAIL FROM:<sender2 at example.com>
250 2.1.0 Ok
RCPT TO:<tss at dovecot.org>
554 5.2.2 User is over quota
More information about the dovecot
mailing list