On Mon, Aug 24, 2015 at 01:44:47PM -0400, Wietse Venema wrote: > Viktor Dukhovni: > > On Mon, Aug 24, 2015 at 06:54:56PM +0200, Alexandre Ellert wrote: > > > > > > Le 22 ao?t 2015 ? 15:46, Viktor Dukhovni <postfix-us...@dukhovni.org> a > > > > ?crit : > > > > > > > > Is the policy service check in "smtpd_recipient_restrictions", in > > > > "smtpd_end_of_data_restrictions" or both? > > > The policy server is called at smtpd_end_of_data_restrictions stage. > > > > At that stage you don't know who the recipients are (if there's > > more than one). You need a policy service that is called for each > > recipient and then finally at end of data. > > > > With SMTP there is no per-recipiet end-of-data reply, and a > reject reply will block mail for all recipients.
Of course, but if a policy service wants to refuse overly large messages whenever *any* recipient's quota is exceeded, it still needs to inspect all the recipients. Ditto if it wants to permit provided *some* recipient's quota is not exceeded. -- Viktor.