rud...@padaru.de: > 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...
/etc/postfix/main.cf: smtpd_recipient_restrictions = ... check_recipient_access inline:{ { example.com = check_policy_service inet:host:port } { other.examnple = check_policy_service inet:host:port } } ... applies the quota check only for example.com or other.example. But, this is a lot more complicated than just making a call to a quota service. It does not look good for adding such a policy check to the pickup daemon. Wietse