Just a follow up to my last message, which might not have been very
clear.  I think I want to do something from within the rc script so that
qmail runs like this:

qmail-start "|/var/qmail/myscripts/filter.pl ./Maildir/" splogger qmail

    Where filter.pl would read STDIN, filter out words, and print to STDOUT,
in the hopes that qmail-local would pick up the rest and deliver to Maildir.
But this doesn't seem to work out. .. I just get filter.pl printing the
contents of the message to syslog.

    Can anybody help me along?


----- Original Message -----
From: "Derek Watson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 06, 2000 10:48 AM
Subject: Opinions on filtering


>
>     Hello all.
>
>     I was just looking for a little insight, maybe from someone who has
> tried this before.  I plan to write a wrapper (for qmail-local?), which
will
> intercept every local mail delivery (from local to local, or remote to
> local).  I need to filter the content, strip attachments and postpend a
> tagline to the message.  I figure Perl is suitable for the task, and have
no
> problems writing that element, but I am unsure of how to implament it.
>
>     Is qmail-local the program I should emulate?  Is there any piping
> trickery I can use when starting qmail-smtpd instead?  I have seen people
> pipe messages through other programs before delivering them to ./Maildir.
.
> . is that the way I should go about this?
>
>     I appretiate any input you might have.
>
>
>     Derek Watson
>     Systems Administrator, Programmer
>     Elyrium Corp.
>
>
>

Reply via email to