|Main Archive Page > Month Archives > postfix-users archives|
On 11/2/2011 10:43 AM, Keith Steensma wrote:
> It's been a long time since I have participated in this list (goes
> to show how good Postfiix is when it can run for years with so few
> problems). Our company has decided to start using an outside SPAM
> filtering service. Overall, this is doing a very good job. But we
> are getting SPAM directly into out system and I need to block all
> outside SMTP connections except the connections from a group of 8 IP
> CIDR notation: 220.127.116.11/21
> Netmask notation: 18.104.22.168 with a netmask of 255.255.248.0
> Address range: 22.214.171.124 through 126.96.36.199
> I tried (from "Getting selective with SMTP access restriction lists"
> web page)
> smtpd_recipient_restrictions = permit_mynetworks,
Just replace "reject_unauth_destination" with "reject" and you're
good to go.
-- Noel Jones
> mynetworks = 127.0.0.0/8, 192.168.1.0/24, 188.8.131.52/21
> But that only solved half the problem. Mail is still getting in
> from from IP's (like from 184.108.40.206 by 220.127.116.11)
> Can anyone offer a suggestion how to fix this problem the right way?
> Keith Steensma