post...@ptld.com: > >> Or does reject_unlisted_recipient get disabled completely > >> when smtpd_reject_unlisted_recipient=no? > > > > You can then use "reject_unlisted_recipient" explicitly at > > the appropriate stage in the recipient restrictions. > > > Okay, I understand why doing any of this in DATA is bad and I should have > realized that. > > Just to clarify in trying to achieve my end goal, is there any way > to get milters to run before postfix would evaluate > reject_unlisted_recipient in the RCPT command?
No. If Postfix rejects information then Postfix will not pass it to Milters. Otherwise, Milters would get out of sync with Postfix. I recently added a section on this in the Postfix documentation. https://www.postfix.org/MILTER_README.html#when-inspect Wietse