On 03/03/2011 03:27 PM Noel Jones wrote:
> On 3/3/2011 7:21 AM, Pascal Volk wrote:
>> … 
>> if recipient_count>  1&&  any_recipient_has_quota_reached:
>>      (do not deliver to recipients which are still under quota)
>>      action=552 5.2.2 Quota … (mailbox for one or recipients is full)
> 
> This will reject mail for everyone on the message if anyone is 
> over quota.  Seems like poor service for the clients.
> …
>>
>> Would this be correct? Are there any other/better (recommended) procedures?
> 
> Better to find some way to reject over quota recipients during 
> smtpd_recipient_restrictions.  Maybe have the IMAP system 
> update a table that postfix can query.

There is one problem: The real message size is only known in the
"END-OF-MESSAGE" stage. But not in the "RCPT TO" stage, when
smtpd_recipient_restrictions are evaluated.

My idea would 'emulate' Postfix' behavior, when the
virtual_alias_expansion_limit is exceeded.
When virtual_alias_expansion_limit has it's default value (1000) the
message to alias1...@example.com, which expands into 1001 recipients,
will not be delivered to any of the 1001 recipients. (Do I remember wrong?)


Regards,
Pascal
-- 
The trapper recommends today: defaced.1106...@localdomain.org

Reply via email to