From owner-freebsd-isp Sun Dec 30 13: 9:53 2001 Delivered-To: freebsd-isp@freebsd.org Received: from mail.numachi.com (numachi.numachi.com [198.175.254.2]) by hub.freebsd.org (Postfix) with SMTP id E4AD637B417 for ; Sun, 30 Dec 2001 13:09:44 -0800 (PST) Received: (qmail 26375 invoked by uid 3001); 30 Dec 2001 21:09:42 -0000 Received: from natto.numachi.com (198.175.254.216) by numachi.numachi.com with SMTP; 30 Dec 2001 21:09:42 -0000 Received: (qmail 90563 invoked by uid 1001); 30 Dec 2001 21:09:42 -0000 Date: Sun, 30 Dec 2001 16:09:42 -0500 From: Brian Reichert To: tom.oneil@tacni.net Cc: Free Subject: Re: OT: Block TLD in Qmail? Message-ID: <20011230160942.A90483@numachi.com> References: <3C2EA410.7C833E6E@tacni.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3C2EA410.7C833E6E@tacni.com>; from tom.oneil@tacni.com on Sat, Dec 29, 2001 at 11:20:16PM -0600 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sat, Dec 29, 2001 at 11:20:16PM -0600, Tom ONeil wrote: > > I have absolutely had it witha certain TLD and wish to block all > traffic from it. > Anyone know how? badmailfrom requires a domain at least, tried regex and > wildcards. 'badmailfrom' requires a 'host', according to the manpage. Unless qmail-smtpd draws a distiction, that should map to 'domain' readily enough. 'kr' (for example) is a domain, and a Top Level Domain at that. So, I think (again, as an example) that: @kr Would block mail whose envelope is from that TLD. Untested, but I don't see why it wouldn't work. Of course, the envelope is easily forgable. You'd probably be better off choosing the set of netblocks associated with that TLD, and making use of tcpserver to block connections... > Tom > -- > Thomas J. ONeil tom.oneil@tacni.com > http://www.tacni.net > "National Power, Local Presence" > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message -- Brian 'you Bastard' Reichert 37 Crystal Ave. #303 Daytime number: (603) 434-6842 Derry NH 03038-1713 USA Intel architecture: the left-hand path To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message