postfix-users March 2011 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Re: How to handle smtpd_end_of_data_restrictions

Re: How to handle smtpd_end_of_data_restrictions for multiple recipients?

From: Pascal Volk <user+postfix-users_at_nospam>
Date: Thu Mar 03 2011 - 14:45:11 GMT
To: postfix users <postfix-users@postfix.org>

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 alias1001@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.1106215@localdomain.org