Todd A. Jacobs <[EMAIL PROTECTED]> wrote:
> I'm struggling to understand something in the dot-qmail files. If I want
> to run something, and use the error code to determine if the mail should
> be delivered, how do I do that?

It's documented fairly well in the man page for qmail-command. 

> At the moment, I have a .qmail-test file that contains a call to an RBL
> lookup utilityi that returns 100 if it's a blocked IP, and 0 otherwise. It
> reads:
> 
>       |ck4spam
>       &nospam
> 
> The problem is that the mail disappears into the bitbucket regardless of
> the errorlevel returned.

This looks like it should work -- except the second line should probably
be a Maildir or mbox delivery line, rather than a forward line (forward could
loop back to this .qmail file).

Perhaps your script is broken.  You didn't post it, so we can't tell.
Plus, qmail never sends mail to the bitbucket without a trace.  Your logs
will say exactly what happens to mail that goes through this .qmail file.

Charles
-- 
-----------------------------------------------------------------------
Charles Cazabon                            <[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
-----------------------------------------------------------------------

Reply via email to