From owner-freebsd-questions@freebsd.org Thu Jan 5 02:07:29 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 44087C9EE16 for ; Thu, 5 Jan 2017 02:07:29 +0000 (UTC) (envelope-from bc979@lafn.org) Received: from zoom.lafn.org (zoom.lafn.org [108.92.93.123]) by mx1.freebsd.org (Postfix) with ESMTP id 3139E18FE for ; Thu, 5 Jan 2017 02:07:28 +0000 (UTC) (envelope-from bc979@lafn.org) Received: from [10.0.1.251] (unknown [71.177.216.148]) by zoom.lafn.org (Postfix) with ESMTPSA id 8967734AE90 for ; Wed, 4 Jan 2017 17:47:32 -0800 (PST) From: Doug Hardie Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Filtering Email Message-Id: <2E557AFF-35A1-4D08-8FA9-10C65BF4ABDE@lafn.org> Date: Wed, 4 Jan 2017 17:46:25 -0800 To: "freebsd-questions@freebsd.org Questions" X-Mailer: Apple Mail (2.3259) X-Virus-Scanned: clamav-milter 0.98 at zoom.lafn.org X-Virus-Status: Clean X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jan 2017 02:07:29 -0000 I have a local mail server (postfix, dovecot LDA) that receives mail = that is forwarded from my main account's mail server. Virtually all = mail is forwarded so the received from address is the same for all. For = a number of years we have used drive-by mail blocking on the main MTA. = Basically it sends a TEMP_FAIL to the first email from an unknown sender = and then if they later retry, it is accepted. This blocked over 90% of = the spam a few years ago as spammers didn't bother to pay for retries. = However, the environment has changed and it appears that the spammer's = MTAs now do retry so a lot of spam is getting through. I am looking to be able to filter mail on the local MTA (either postfix = or dovecot) so that I can have a table of IP addresses/names that if any = appear in any Received header the email is filtered to the bit bucket. = It appears that is possible in dovecot pigeonhole (I am using that). = However, it is not table driven. You have to write a rule for each = name/IP. I don't see anyway to have it refer to a table. Is such = possible? =E2=80=94 Doug