From owner-freebsd-questions@FreeBSD.ORG Wed Oct 25 15:47:48 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 754C516A403 for ; Wed, 25 Oct 2006 15:47:48 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from unsane.co.uk (unsane.co.uk [62.140.220.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id 99F6E43D5A for ; Wed, 25 Oct 2006 15:47:47 +0000 (GMT) (envelope-from jhary@unsane.co.uk) Received: from [192.168.10.217] (150.117-84-212.staticip.namesco.net [212.84.117.150]) (authenticated bits=0) by unsane.co.uk (8.13.7/8.13.3) with ESMTP id k9PFlW8t071648 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 25 Oct 2006 16:47:36 +0100 (BST) (envelope-from jhary@unsane.co.uk) Message-ID: <453F8706.5010204@unsane.co.uk> Date: Wed, 25 Oct 2006 16:47:18 +0100 From: Vince User-Agent: Thunderbird 1.5.0.7 (X11/20061017) MIME-Version: 1.0 To: Jack Stone References: In-Reply-To: X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Cc: freebsd-questions@freebsd.org Subject: Re: Shell question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Oct 2006 15:47:48 -0000 Jack Stone wrote: > Folks: > I have managed to piece together a shell script that is able to retrieve > the domains from the spams of the day and summarize those in a special > file that can then be added to the sendmail's rejects in the access.db. > But, first I have to eyeball the list and remove any obvious good-guy > domains. > > I would like to create another list of those same good guys that can be > added to each day as they show up, then compare it to the above main > list and delete the good guy domains before adding to the access.db. > > What would be the best way of doing the above in a few lines added to my > (sh) shell script? > hmm probably not the best but.... egrep -v -f goodguys.txt spamers.txt will only spit out the domains in spammers.txt that are not in goodguys.txt goodguys.txt is a file of good guys domains in the format aa.com|bb.com|cc.com|dd.com creating this file programaticly shouldnt be too hard. not sure how well this will scale as i only tested it with 5 or so names. Vince > BTW: The "spam" list of domains are listed in a column one below the > other in a flat file. > > Appreciate your usual fine advice on this. Hope I have been clear. > > Thanks! > > Jack > > _________________________________________________________________ > Find a local pizza place, music store, museum and more…then map the best > route! http://local.live.com?FORM=MGA001 > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"