From owner-freebsd-questions Thu Dec 19 3:36:39 2002 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 D313937B401 for ; Thu, 19 Dec 2002 03:36:37 -0800 (PST) Received: from hotmail.com (oe23.law8.hotmail.com [216.33.240.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 79AF743EB2 for ; Thu, 19 Dec 2002 03:36:37 -0800 (PST) (envelope-from mxsmanic@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 19 Dec 2002 03:36:37 -0800 X-Originating-IP: [193.251.59.14] From: "Mxsmanic" To: "FreeBSD Questions" References: <200212182250.GBIMOPT39354@asarian-host.net> <20021219081443.GB80493@happy-idiot-talk.infracaninophi> Subject: Re: Getting Perl scripts to work as mail filters Date: Thu, 19 Dec 2002 12:36:29 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: X-OriginalArrivalTime: 19 Dec 2002 11:36:37.0387 (UTC) FILETIME=[E3FB9DB0:01C2A752] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I finally got it to work by piping to sendmail. Seems to be adequate for what I want to do. Now all I have to do is design my patented, foolproof methodology for distinguishing spam from real mail so that I can encode the rules in the script. There must be a way! Also, this may allow me to do something about getting rid of HTML in mail, which I can't stand. ----- Original Message ----- From: "Matthew Seaman" To: "FreeBSD Questions" Sent: Thursday, December 19, 2002 09:14 Subject: Re: Getting Perl scripts to work as mail filters > On Thu, Dec 19, 2002 at 01:13:17AM +0100, Mxsmanic wrote: > > What about appending directly to the mailbox file under /var/mail/$USER with > > the script? It looks like the format of the file is very simple. Why > > wouldn't that work? I've tried writing to it, but I can't, at least not > > when the script runs from the aliases file (works fine when I run it myself, > > though). > > mail.local(8) is probably what you want to use to do that. However > your main problem will be getting sendmail to setuid() to the required > user before calling the mymail script. > > Cheers, > > Matthew > > -- > Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks > Savill Way > Marlow > Tel: +44 1628 476614 Bucks., SL7 1TH UK > > 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