On Wed, Mar 13, 2013 at 01:48:57PM +0100, Ansgar Wiechers wrote:

> > Mar 12 17:13:01 mediaserver postfix/smtpd[12785]: NOQUEUE: reject: RCPT
> > from ip68-227-115-116.ok.ok.cox.net[68.227.115.116]: 451 4.3.5 <
> > [email protected]>: Recipient address rejected: Server configuration
> > error; from=<[email protected]> to=<[email protected]>
> > proto=ESMTP
> 
> The message "Server configuration error" is curious, though. Please post
> the output of "grep 12785 /var/log/mail.log".

That's the problem: mail is rejected because of configuration errors,
not incorrectly applied. policy.

> > smtpd_recipient_restrictions = 
> >   permit_sasl_authenticated
> >   check_recipient_access hash:/etc/postfix/filtered_domains
> >   permit_mynetworks
> >   reject_unauth_destination
> > smtpd_sender_restrictions = permit_sasl_authenticated permit_mynetworks
> 
> "check_recipient_access" should go *after* "reject_unauth_destination",
> otherwise you're prone to becoming an open relay.

No, it is generally safe to do recipient access lookups, even before
anti-relay policy, since the recipient cannot be spoofed. Just don't
allow mail to recipients in outside domains.

The permit-only sender restrictions are pointless (slow version of empty).

-- 
        Viktor.

Reply via email to