Re: check_policy_service sends size=0

2021-07-29 Thread Christoph Haas
Wietse Venema: > AFTER the message is received, the message size is known. Thanks, Wietse. Makes sense now. Like this it works: smtpd_recipient_restrictions = reject_unauth_destination smtpd_end_of_data_restrictions = \ check_policy_service inet:localhost:12340 It's just a bit wasteful becaus

Re: check_policy_service sends size=0

2021-07-29 Thread Wietse Venema
Wietse Venema: > Christoph Haas: > > request=smtpd_access_policy > > protocol_state=RCPT > ... > > size=0 > > The RCPT TO command is received before the message is > received, therefore the message size is not known. Also, the client did not specify a message size when it sent the MAIL FROM comma

Re: check_policy_service sends size=0

2021-07-29 Thread Wietse Venema
Christoph Haas: > request=smtpd_access_policy > protocol_state=RCPT ... > size=0 The RCPT TO command is received before the message is received, therefore the message size is not known. > My Postfix log shows though: > > postfix/qmgr[43700]: A031B9D69C: from=, size=501, > nrcpt=1 (queue active)

check_policy_service sends size=0

2021-07-29 Thread Christoph Haas
Dear list, I'm chasing a strange phenomenon with Postfix 3.5.6. I deliver virtual emails through LMTP to Dovecot. That works well. Now I'd also like to check the user's quota using Dovecot's quota service as described at https://doc.dovecot.org/configuration_manual/quota_plugin/#quota-service