On Fri, May 15, 2009 at 11:33:17AM +0100, Simon Waters wrote:

> smtpd_recipient_restrictions =
>       permit_mynetworks,
>       reject_rbl_client zen.spamhaus.org,
>       check_policy_service inet:127.0.0.1:60000,       
>       check_recipient_access hash:/etc/postfix/relay-domains, 
>       check_recipient_access proxy:pgsql:/etc/postfix/pgsql-valid-rcpt.cf,    
>       reject_unauth_destination

Change this to:

    smtpd_recipient_restrictions =
        permit_mynetworks,
        reject_unauth_destination,
        reject_rbl_client zen.spamhaus.org,
        check_policy_service inet:127.0.0.1:<port>

(using a port outside the dynamic port range, something in the 1024-32K
range is generally portable).

And let Postfix do recipient validation correctly by defining:

        relay_recipient_maps
        local_recipient_maps

correctly. Typically local_recipient_maps is already correct
(allows aliases(5) and system users). So you just need to define
relay_recipient_maps for any relay_domains.

-- 
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majord...@postfix.org?body=unsubscribe%20postfix-users>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.

Reply via email to