From owner-freebsd-questions Mon May 29 10:12:53 2000 Delivered-To: freebsd-questions@freebsd.org Received: from home.offwhite.net (home.offwhite.net [156.46.35.30]) by hub.freebsd.org (Postfix) with ESMTP id 1B03C37BCAD for ; Mon, 29 May 2000 10:12:49 -0700 (PDT) (envelope-from brennan@offwhite.net) Received: from localhost (brennan@localhost) by home.offwhite.net (8.9.1/8.9.3) with ESMTP id MAA93394; Mon, 29 May 2000 12:12:41 -0500 (CDT) Date: Mon, 29 May 2000 12:12:41 -0500 (CDT) From: BWS - Offwhite To: James A Wilde Cc: FreeBSD Questions Subject: Re: Slightly offtopic - antispam file In-Reply-To: <000201bfc940$464414a0$8c0aa8c0@hk.tbv.se> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Well, if you can muck with your .forward file, you can set up this filter. http://www.freebsd.org/cgi/url.cgi?ports/mail/mailfilter/pkg/DESCR It is a simple perl script and even if your ISP will not install it, you can simply put the script in your home directory and have the .forward file point to it. Here is an example: .forward contents "| /usr/local/bin/mail.filter" .forward contents - alternative "| /home/wilde-user/bin/mail.filter" Then you can use the filter scripts, or simply edit the .mail.filter rules file directly. It is perl code which is eval'd from the filter, so if you know perl, this will be your best friend. .mail.filter contents $result = 1 if ($incoming{'from'} =~ /earthlink.net/);|delete $result = 1 if ($incoming{'from'} =~ /spammer/);|delete $result = 1 if ($incoming{'from'} =~ /cdnow.com/);|delete Alternatively, the script in this package will interactively ask you questions to add filters to your .mail.filter file. This name of this script is mailfilter and you can run this from the command line if you have shell access. The author of this script is continually updating this script to add more features, but so far it does what you want, including save to a file, forwarding, or running another program. I hope this helps. Brennan Stehling - web developer and sys admin projects: www.greasydaemon.com | www.onmilwaukee.com | www.sncalumni.com Microsoft: Will you get a macro virus today? http://www.greasydaemon.com/noms/ <- Why avoid MS? On Mon, 29 May 2000, James A Wilde wrote: > I'm having a problem with UCE from everybody_and_his_brother@earthlink.net > which my ISP is unwilling to filter away. > > They use unix mail servers. Is there some file I can put in my mail > directory which will forward all mail from *@earthlink.net to /dev/null? > I'm thinking of something similar to the .forward file, but which only > forwards mail from a certain address. > > Grateful for all help. > > mvh/regards > > James > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message