postfix-users October 2010 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Re: blocked ip address

Re: blocked ip address

From: Brian Evans - Postfix List <grknight_at_nospam>
Date: Wed Oct 27 2010 - 17:33:14 GMT
To: postfix-users@postfix.org

On 10/27/2010 1:24 PM, Sasa wrote:
> "Noel Jones" wrote:
>> Put a client whitelist just before the spamcop check.
>> A typical example:
>>
>> # main.cf
>> smtpd_recipient_restrictions =
>> permit_mynetworks
>> reject_unauth_destination
>> check_client_access hash:/etc/postfix/client_whitelist
>> reject_rbl_client bl.spamcop.net
>>
>> # client_whitelist
>> 85.18.95.xx permit_auth_destination
>
> Hello, in main.cf I have this configuration:
>
> smtpd_recipient_restrictions = permit_sasl_authenticated,
> reject_unauth_destination,
> reject_rbl_client bl.spamcop.net,
> reject_rbl_client dul.dnsbl.sorbs.net,
> reject_rbl_client zen.spamhaus.org
>
> now I have created file "/etc/postfix/client_whitelist" and in this
> file I have add ip address:
> 85.18.95.xx

Did you also add permit_auth_destination after the IP address like Noel
suggested?

> then I have insert "check_client_access
> hash:/etc/postfix/client_whitelist" and now I have this configuration:

Did you run postmap on the client_whitelist file like you need to for
every hash file?
>
> smtpd_recipient_restrictions = permit_sasl_authenticated,
> reject_unauth_destination,
> check_client_access hash:/etc/postfix/client_whitelist,
> reject_rbl_client bl.spamcop.net,
> reject_rbl_client dul.dnsbl.sorbs.net,
> reject_rbl_client zen.spamhaus.org
>
> but with new parameter when I try send mail smpt server go in timeout !

Did you check your logs? They usually provide a good clue.