procmail
[Top] [All Lists]

Re: deferral: procmail:_Couldn't_create_"/var/spool/mail/j.smith"/

2002-08-03 20:44:47
On 2002-08-04 12:23:58, zenn wrote:
i'm trying to tell procmail to filter all mail tagged with "X-Spam-Status"
to a .qmail-alias(coughtspam) that forwards to a external email address...

     :0fw
     | spamc

     :0:
     * ^X-Spam-Status: Yes
     !coughtspam

so if i'm reading the above recipe correct, it says, forward all mail
to spamc...

Well, the first rule says filter the message through the program `spamc`
and if the exit code was 0 read the filtered message and pass it on (at
least, that's how I read the man page).

Can procmail find the program?  What exit code is is getting?  Might
want to set VERBOSE=yes to get more data.

on return, if it is tagged with "X-Spam-Status, send the
mail to this "coughtspam" email account....  am i reading it correctly?

Yes.

the j.smith account is a local maldir account... i was testing local
mail delivery by sending an email to this user... if the above recipe
does not apply, shouldn't qmail just deliver the message to the user ?

Procmail will deliver to $DEFAULT if nothing matches which seem to be
what is happening, so I don't think your second rule matches your test
message.

in other words, if user j.smith does not have the "X-Spam-Status"
Xheader, why is procmail trying to deliver it, isn't it supposed to
pass it to qmail for local mail delivery is no recipe applies ?

No, procmail will not pass the message back to qmail for delivery.

in your last email you mentioned using "!" if i wanted to send the
mail to an email address...  isn't that what i'm doing ?

Yes, but I don't think your condition is matching... if you want to test
this feature, try remove the condition to have all mail send to
coughtspam to ensure that it works as expected.


/Allan
-- 
Allan Wind
P.O. Box 2022
Woburn, MA 01888-0022
USA

Attachment: pgplyouKjWhwI.pgp
Description: PGP signature