|Main Archive Page > Month Archives > postfix-users archives|
> I have the following config:
> smtpd_recipient_restrictions = permit_mynetworks reject_unauth_destination check_policy_service inet:127.0.0.1:10031
> I assumed that it would mean that any attempt to send a mail to
> a recipient that is not a valid destination would be immediately
> rejected, and if the recipient was valid, it would be a matter
For that, specify reject_unlisted_recipient before permit_mynetworks.
reject_unlisted_recipient (with Postfix version 2.0: check_recipient_maps)
Reject the request when the RCPT TO address is not listed in the
list of valid recipients for its domain class. See the
smtpd_reject_unlisted_recipient parameter description for
details. This feature is available in Postfix 2.1 and later.
> for the grey-listing via policyd. (As in restrictions evaluated
> However it appears that the policyd-service is queried first of all. Is this by design, or could it be changed? (Ok, it is not really a vital issue, mostly trying to learn the workings of postfix).