On 7/29/2021 2:44 PM, dovecot@ptld.com wrote:
The only solution is to reject all mail for an over-quota recipient during recipient restrictions, and if the mail passes that stage, deliver it anyway even if it makes the user go over quota.
But does this happen out of the box? Wont dovecot end up back splatter bouncing one of the recipients that is over quota after postfix delivers all recipients to LMTP?
That's probably what happens now when user not over quota and receives a large mail that would put them over quota.
What is needed is up-to-quota-plus-one-more-mail-regardless-of-size.
MTA- I have a 0 byte mail for bob. Is he over quota? D- nope, he's good for another 50Kb. MTA- Ok, here's the mail, it's really 3Mb. D- Thanks, delivered.
-- next run --
MTA- I have a 0 byte mail for bob. Is he over quota? D- Yes. MTA- Thanks, rejected.
-- Noel Jones