Date: Wed, 18 Dec 2002 14:15:31 -0000 From: "Barry Byrne" <barry.byrne@wbtsystems.com> To: "Mxsmanic" <mxsmanic@hotmail.com>, "FreeBSD Questions" <freebsd-questions@FreeBSD.ORG> Subject: RE: Getting Perl scripts to work as mail filters Message-ID: <NCBBIAMNAKDKFJIIGNPKCEGDKHAA.barry.byrne@wbtsystems.com> In-Reply-To: <OE26RvITt7Qs6hvfPAZ000066b0@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> -----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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NCBBIAMNAKDKFJIIGNPKCEGDKHAA.barry.byrne>