Le 06/12/2012 06:22, Pierre-Gilles RAYNAUD a écrit :
> Hi Everyone,
>
> On 01/12/12 18:19, Noel Jones wrote:
>> On 12/1/2012 11:11 AM, PGR wrote:
>>> Hi Everyone,
>>>
>>> I would like to know how to stop/forbid this server to send us their emails
>>>
>>> The content of received email is
>>>
>>> Received: from web-groupsolweb1.aquaray.com (unknown [95.128.42.80])
>>> by mail.domain.tld (Postfix) with ESMTP
>>> for <[email protected]>; Fri, 30 Nov 2012 00:56:49 +0100 (CET)
>>> Received: from PC-de-thib (2.147.3.109.rev.sfr.net [109.3.147.2])
>>> by web-groupsolweb1.aquaray.com (Postfix) with SMTP id E4515974A2C
>>> for <[email protected]>; Tue, 27 Nov 2012 03:59:06 +0100 (CET)
>>>
>>> The contain of mail.log
>>>
>>> Nov 30 00:56:49 serv001 postfix/smtpd[21866]: warning: 95.128.42.80:
>>> address not listed for hostname web-groupsolweb1.aquaray.com
>>> Nov 30 00:56:49 serv001 postfix/smtpd[21866]: connect from
>>> unknown[95.128.42.80]
>> Add a check_client_access map to reject them. Something like:
>>
>> # main.cf
>> smtpd_client_restrictions =
>> check_client_access hash:/etc/postfix/client_blacklist
>>
>> # client_blacklist
>> 95.128.42.80 REJECT listed in client blacklist
> Both have been done
>
> /etc/postfix$ grep iglobe.be *
> client-blacklist:.iglobe.be REJECT 555 Spam not tolerated
vy default, parent_domain_matches_subdomains contains
"smtpd_access_maps". this implies that you should use "iglobe.be"
without a dot.
my recommendation is: use two entries, one with a leadin dot and one
without:
.iglobe.be REJECT ....
iglobe.be REJECT ...
This way, the domain is blocked whatever the value of
parent_domain_matches_subdomains is:
http://www.postfix.org/postconf.5.html#parent_domain_matches_subdomains
note that this check depends on DNS. you can add checks based on the IP
address.
check_client_access cidr:/etc/postfix/client-bl.cidr
and in that file:
#reject 62.182.56.160 - 62.182.56.175
62.182.56.160/28 REJECT ...
# this doesn't include the IPs 62.182.56.176 - 62.182.56.187
# but that makes many "cidr blocks".
# if you feel a little angry, extend the block up to 62.182.56.191.
#62.182.56.160/27 REJECT ....
# if you are very angry, just block the /24.
>
> /etc/postfix$ grep client-blacklist *
> main.cf:smtpd_client_restrictions = permit_mynetworks,
> check_client_access hash:/etc/postfix/client-blacklist,
> reject_rbl_client dnsbl.sorbs.net, reject_rbl_client bl.spamcop.net,
> reject_rbl_client zen.spamhaus.org,reject_unknown_reverse_client_hostname
>
> and I'm still getting unwanted email (from iglobe.be in this example)
>
> Received: from paganini.iglobe.be (diegem.iglobe.be [62.182.56.170])
> by mail.domain.tld (Postfix) with ESMTP
> for <[email protected]>; Wed, 5 Dec 2012 12:51:37 +0100 (CET)
> Received: from pluto.be-housing.be (unknown [192.168.137.94])
> by paganini.iglobe.be (Postfix) with ESMTP id 69C6688B77
> for <[email protected]>; Wed, 5 Dec 2012 12:51:39 +0100 (CET)
> Received: from 84.194.91.122 (localhost [127.0.0.1])
> by pluto.be-housing.be (Postfix) with SMTP id 01744158023
> for <[email protected]>; Wed, 5 Dec 2012 12:51:36 +0100 (CET)
>
> Any suggestions on what is going on my configuration?
>
> Cheers
> --
> PGR