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

Re: blocked ip address

From: Noel Jones <njones_at_nospam>
Date: Wed Oct 27 2010 - 17:04:22 GMT
To: postfix-users@postfix.org

On 10/27/2010 10:44 AM, Sasa wrote:
> Hi, I have a mail server with postfix/amavisd-new,
> spamassassin and I would insert an IP address in white list
> because this IP address now is blocked because is present in
> spamcop blacklist.
> I woluld not disable spamcop but only enable one IP address.
> Now in log file I have:
>
> aa011msr.fastwebnet.it[85.18.95.xx]: 554 5.7.1 Service
> unavailable; Client host [85.18.95.xx] blocked using
> bl.spamcop.net; Blocked - see
> http://www.spamcop.net/bl.shtml?85.18.95.xx;
>
> I woluld not blocked mail from 85.18.95.xx , I have insert
> this ip address in local.cf but this ip address is always
> blocked.
> Thanks.
>
> -
> Salvatore.
>

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

If you (mistakenly) check spamcop multiple times in your
main.cf, you will need to add the whitelist before each one.
Or better yet, just use each rbl one time.

   -- Noel Jones