From owner-freebsd-questions Wed Dec 18 5:46:18 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 D4D9B37B401 for ; Wed, 18 Dec 2002 05:46:17 -0800 (PST) Received: from hotmail.com (oe44.law8.hotmail.com [216.33.240.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D31A43E4A for ; Wed, 18 Dec 2002 05:46:17 -0800 (PST) (envelope-from mxsmanic@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 18 Dec 2002 05:46:17 -0800 X-Originating-IP: [193.251.59.14] From: "Mxsmanic" To: "FreeBSD Questions" Subject: Getting Perl scripts to work as mail filters Date: Wed, 18 Dec 2002 14:46:14 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" 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: 18 Dec 2002 13:46:17.0504 (UTC) FILETIME=[D6E18200:01C2A69B] 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 can't find an answer to this question anywhere, after two hours of searching the Web: 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 message, nothing. When I execute the same program by hand, it works fine. If I remove the alias, the mail is delivered just fine, too. What am I missing?? The Perl program has 755 for permissions and has mymail:users as its userid and group. The first line points to the location of Perl in the usual way. I am at a loss for ideas as to why this isn't working. The sendmail manual seems to indicate that it just pipes the e-mail message into this script, then delivers whatever comes out of standard output, but it doesn't seem to work. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message