> On Apr 23, 2021, at 1:33 PM, <rud...@padaru.de> <rud...@padaru.de> wrote: > > Is it possible to check the quota status from the receiver in the pickup > module with a sql query or something else to get the same behavior as when > the mail passes the smtpd module?
No, pickup(8) needs to enqueue the message, it can then be bounced if not deliverable. Milters, content_filters, ... can arrange for the message to bounce... > Is it at all possible to create extended acceptance criteria for a locally > delivered mail? Not at submission time, because there's no way to return a useful error indication via just a command-line exit code, and programs that run sendmail(1) don't expect failure and typically don't have any useful recovery strategies. Failure of local submission happens asynchronously, after the message is queued, if delivery cannot complete, the message is bounced. -- Viktor.