Viktor Dukhovni: > > 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.
Look up the quota at "RCPT TO" time, and remember the smallest. Enforce the quota at "end of data" time, when the actual message size is known. Of course, it is a good idea to also look at the client announcement of the message size received at "MAIL FROM" time, so that mail can be blocked at "RCPT TO" time. Wietse