From owner-freebsd-questions Wed Dec 18 6:15:43 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 3D51A37B401 for ; Wed, 18 Dec 2002 06:15:42 -0800 (PST) Received: from slate.dublin.wbtsystems.com (slate.dublin.wbtsystems.com [193.120.231.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2207343EB2 for ; Wed, 18 Dec 2002 06:15:41 -0800 (PST) (envelope-from barry.byrne@wbtsystems.com) Received: from spiral (spiral.dublin.wbtsystems.com [193.120.231.190]) (authenticated bits=0) by slate.dublin.wbtsystems.com (8.12.6/8.12.6) with ESMTP id gBIEFW7n037190; Wed, 18 Dec 2002 14:15:32 GMT From: "Barry Byrne" To: "Mxsmanic" , "FreeBSD Questions" Subject: RE: Getting Perl scripts to work as mail filters Date: Wed, 18 Dec 2002 14:15:31 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 In-Reply-To: Importance: Normal X-WBT-Authenticated-User: bb X-Scanned-By: slate/MIMEDefang 2.28 (www . roaringpenguin . com / mimedefang) 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 > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Mxsmanic > What do I have to do to make a simple Perl script filter incoming > mail for a > mailbox? I wrote a script that just reads standard input and writes it to > standard output, then put it in my home directory, then changes > /etc/mail/aliases to point to it, like this: > > mymail: "|/usr/home/mymail/perlfilter" > > But when I actually send mail to this address, it just > disappears--no error Are you sure there is no error - did you check the sendmail log? You will need to ensure the script is listed in your sm.bin directory (man smrsh). Briefly: in /etc/mail/aliases: mymail: "| perlfilter" in sm.bin (location varies - possibly /usr/libexec/sm.bin) ln -s /path/to/my/perfilter perlfilter Cheers, Barry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message