On 07-08-2021 5:39 pm, Viktor Dukhovni wrote:
On Thu, Jul 08, 2021 at 04:49:03PM -0400, post...@ptld.com wrote:
I notice when using SMTPD_DELAY_REJECT=yes and calling a
CHECK_POLICY_SERVICE inside SMTPD_HELO_RESTRICTIONS it will report
"protocol_state = RCPT", same as when you call the policy service from
inside SMTPD_RECIPIENT_RESTRICTIONS.

Is there a way to pass a value from the CHECK_POLICY_SERVICE line (or
any other method), to know which restriction section the policy service
is being ran inside of?

This problem report is not consistent with the Postfix source code,
which reports the correct protocol state.  Perhaps you don't actually
have "smtpd_delay_reject = yes" in place.

I wasn't reporting a problem, i assumed it was by design since delay reject causes the restrictions to be checked after RCPT TO.
I do have, and double confirmed, that smtpd_delay_reject = yes
If you are saying it is supposed to be a different state than RCPT, that is not the behavior im getting in version 3.5.8.

Reply via email to