On Thu, Jul 08, 2021 at 05:53:37PM -0400, post...@ptld.com wrote: > > 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 = no" in place.
Sorry, I misread your question, thought you were asking about delay reject set to "no", and should have said: smtpd_delay_reject = no Of course with "smtpd_delay_reject = yes" the protocol state at the time of the request is "RCPT". This is not configurable. https://github.com/vdukhovni/postfix/blob/postfix-3.5/postfix/src/smtpd/smtpd_check.c#L3999-L4006 > 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. You can communicate the request context via "policy_context=...", see: http://www.postfix.org/SMTPD_POLICY_README.html#advanced http://www.postfix.org/postconf.5.html#smtpd_policy_service_policy_context -- Viktor.