On Fri, Feb 08, 2013 at 10:51:02AM +0100, Fabio Sangiovanni wrote:

> Everything works fine, except when one client's IP is blacklisted by
> Spamhaus. In this case, we need to whitelist that IP - and that
> should be obtainable with the following:
> 
> smtpd_recipient_restrictions =
>     reject_non_fqdn_sender,
>     reject_non_fqdn_recipient,
>     reject_unknown_sender_domain,
>     check_recipient_access hash:/etc/postfix/domain.hash,
>     check_client_access cidr:/etc/postfix/whitelist_client.cidr,
>     reject_rbl_client zen.spamhaus.org,
>     permit_sasl_authenticated,
>     reject_unauth_destination
> 
> /etc/postfix/whitelist_client.cidr
>     192.0.2.1/32    OK

Replace "OK" with:

        /etc/postfix/whitelist_client.cidr:
        192.0.2.1/32    permit_sasl_authenticated

-- 
        Viktor.

Reply via email to