procmail
[Top] [All Lists]

procmail/sendmail general filter question

1998-04-29 09:26:32

hello, i've sent in my request to subscribe to the list, but that hasnt
gone through just yet.. so if you could please reply to
procmail(_dot_)issues(_at_)falcon(_dot_)org , i would really appreciate it :)

anyways:
the man page mentions filtering all mail through procmail (in examples(1))
Im trying to accopmlish that, using the following ruleset:

R$*<@$+>$* <tab> $#procmail $@/etc/procmailrcs/system.rc $:$1(_at_)$2procmail$3
R$*<@$*.procmail>$* <tab> $1@<$2>$3

while that does filter the mail through procmail nicely, if i use a

:0 c

for the definition (i.e. regard the c) in the procmailrc, i get the
following error (generated in syslog)

Apr 28 09:37:54 dipper sendmail[6845]: JAA06845: from=abeck, size=81,
class=0, pri=30081, nrcpts=1,
msgid=<199804281637(_dot_)JAA06845(_at_)dipper(_dot_)norshore(_dot_)wednet(_dot_)edu>,
relay=abeck(_at_)localhost
 
Apr 28 09:37:54 dipper sendmail[6847]: JAA06845: to=bob(_at_)falcon(_dot_)org,
ctladdr=abeck (766/100), delay=00:00:00, xdelay=00:00:00, mailer=procmail,
relay=/etc/procmailrcs/system.rc, stat=Can't create output: Error 0
 
Apr 28 09:37:54 dipper sendmail[6847]: JAA06845: JAA06847: DSN: Can't
create output: Error 0
 
Apr 28 09:37:55 dipper sendmail[6847]: JAA06847: to=abeck, delay=00:00:01,
xdelay=00:00:00, mailer=local, stat=Sent


what im trying to accomplish is this:
i'd like to be able to filter all mail (incoming, and outgoing, including
any mail relayed through the machine) to be "filtered" in the sense that
upon seeing what we're filtering for, we have the option of capturing a
copy of that email "invisibly" (i.e. keeping a local copy for ourselves
but letting it go through as normal.. i.e. the :0 c option), capturing the
email without letting it go through (i.e. keeping a local copy, but
refusing to let the email go beyond that machine), and of course just
removing the emmail from the existance of the bitstream entirely..

my Mprocmail definition reads as follows:

Mprocmail,      P=/usr/local/bin/procmail, F=mSDFMhun, S=11, R=21,
                A=procmail -m $h $g $u
 
any ideas?

thank you!