On 5/28/2010 7:49 AM, Jesper Fruergaard Andersen wrote:
> 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".
> Is it because having smtpd_reject_unlisted_recipient = yes gets
> evaluated later and not as a part of smtpd_recipient_restrictions?
>
>   

Unless reject_unlisted_recipient is explicitly listed in a restriction
class, smtpd_reject_unlisted_recipient, when enabled, is evaluated after
smtpd_recipient_restrictions.

The simple change is to insert reject_unlisted_recipient before your
policy service.

Brian

> # postmulti -i postfix-in -x postconf -n
>   
[snip]
> smtpd_recipient_restrictions = reject_non_fqdn_recipient
> reject_unauth_destination  permit_mynetworks  check_recipient_access
> ${indexed}receive_all  check_recipient_access
> pgsql:/etc/postfix-in/pg-recipient-quota  ${indexed}recipient_access
> warn_if_reject check_policy_service unix:private/policydjfa
> check_policy_service inet:127.0.0.1:12525
>   

Reply via email to