Jesper Fruergaard Andersen a écrit : > I am testing a new server running Postfix 2.7.0 on Ubuntu 10.4. I am > using postmulti. The instance for receiving mail is setup like below. > Everything seems to be working fine. > But I feel confused why messages for non existing accounts gets > rejected with messages from policyd-weight and not with user unknown. > It seems that if policyd-weight accepts the connection it does then > get rejected with "Recipient address rejected: User unknown in virtual > mailbox table" > I would think that postfix would reject it right at > "reject_unauth_destination".
reject_unauth_destinations rejects unauthorized _relay_, that is mail to _domains_ that you don't list in one of - mydestination - relay_domains - virtual_mailbox_domains - virtual_alias_domains. said otherwise, reject_unauth_destination is what protects you from being an open relay. it will block mail except for domains that you host or relay mail for. "unknwon users" are rejected at end of smtpd restrictions if you keep the default setup: smtpd_reject_unlisted_sender = yes but you can do the check any time you want by calling it explicitely: reject_unlisted_recipient similar things can be done for "sender" instead of recipient. > Is it because having smtpd_reject_unlisted_recipient = yes gets > evaluated later and not as a part of smtpd_recipient_restrictions? > [snip]