Thank you for that explanaition, i appreciate that.

So i need a quota check, before dovecot touch the mail, so that the
mail-client cant deliver the mail to postfix if that quota check isnt
succesfully.

Something like that i have forced, as i explored postfix work flow, i have
add the smtpd_recipient_restrictions ans '-o' parameter tot he smtpd module
in the master.cf => this has caused postfix to accept the mail only if the
quota check is completed successfully. The disadvantage was that I could not
send mails to external anymore, because postfix could not check the external
recipients.

This solution would be perfect, if it weren't for the problem that I can't
send the mails to external...

Mit freundlichen Grüßen
Yours sincerely 
Pascal Rudolf 



-----Ursprüngliche Nachricht-----
Von: owner-postfix-us...@postfix.org <owner-postfix-us...@postfix.org> Im
Auftrag von Viktor Dukhovni
Gesendet: Freitag, 23. April 2021 19:59
An: Postfix users <postfix-users@postfix.org>
Betreff: Re: Change default reject message

> 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.


Reply via email to