> Sorry I wasn't clear enough in my question. No, I was not clear enough in one part of my answer.
To go back and expand on the answer... > > You have different smtpd_*_restrictions, each is an ordered list. > > > > All of the smtpd_*_restrictions ordered lists must give back a > > permit result or the mail is rejected. > > > > To have full control over the order, using one of these ordered lists, > > say smtpd_recipient_restrictions, and putting your checks in it allows > > you to control what happens when, and where your OKs are. In each of these ordered lists, there are three possible results for each test. These are OK, REJECT and DUNNO. Do not let "554 Some text here" confuse you. This is a REJECT message. A DUNNO means, "Keep testing." An OK means, "Stop testing and accept the message." A REJECT means, "Stop testing and deny the message." At the bottom of each ordered list there is an implied OK. So even if you do not put "permit" as the last entry, it is by default there. This is important to understand because it means that if any of the smtpd_*_restrictions list are empty, then that ONE list will have an OK. But do not forget that ALL of the smtpd_*_restrictions lists must say OK, or the mail is rejected. All of this is documented. With what you have read here in mind, you might want to re-read the assorted files that come with Postfix. Especially the ones with ALL_CAPS_NAMES, and the man pages. --Eric
