Hi all,

How is it possible to ensure that external programs run
within my mailfilter file are run successfully prior to
delivering the message?

For example, my mailfilter file runs the message through
antivirus (clamdscan) and also through antispam (spamc).

Both clamdscan and spamc require communication with their
respective daemons. If for some reason the daemon is down,
or not functioning properly, then the result is that the
message doesn't get properly checked and then gets
delivered.

I'm not sure how to detect some kind of error so that
instead of delivering, I can actually indicate error and
defer delivery.

For example, this is how I use spamc:

        xfilter "/usr/bin/spamc"
        if (/^X-Spam-Level: \*\*\*\*\*/)
        {
                echo "Spam detected, message dumped"
                EXITCODE=77
                exit
        }

But if spamd is not running, or experiencing problems then
spamc simply returns, and then the spam is delivered
normally. Is there a way I can detect a problem and defer
delivery?

Thanks
Ricardo



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to