> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]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 [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message