[Mimedefang] set_reply returned MI_FAILURE

Tim Boyer tim at denmantire.com
Wed Jan 4 20:39:19 EST 2006


I've been running MIMEDefang for a while, but just recently started filtering
for bad filenames.  I'm using the stock mimedefang-filter example file, with
one exception:  rather than drop_with_warning here:

    if (filter_bad_filename($entity)) {
        md_graphdefang_log('bad_filename', $fname, $type);
        return action_drop_with_warning("An attachment named $fname was removed
from this document as it\nconstituted a security hazard.  If you require this
document, please contact\nthe sender and arrange an alternate means of
receiving it.\n");
    }

I've changed action_drop_with_warning to action_bounce.

Instead of bouncing, however, I'm getting the set_reply returned MI_FAILURE in
logs, and the message is not being rejected.

Jan  4 17:12:37 melbourne mimedefang.pl[10488]:
MDLOG,k04MCZHG013872,bad_filename,autoexec.crt,application/x-x509-ca-cert,<boyert at gmail.com>,<tim at denmantire.com>,
Jan  4 17:12:37 melbourne mimedefang.pl[10488]: filter: k04MCZHG013872:
bounce=1
Jan  4 17:12:37 melbourne mimedefang[24489]: k04MCZHG013872: Bouncing because
filter instructed us to
Jan  4 17:12:37 melbourne mimedefang[24489]: k04MCZHG013872: set_reply returned
MI_FAILURE

It's doing everything absolutely correctly until that last failure.

I've got no idea what I'm doing wrong here - any help is appreciated.  Thanks
much...

-- 
tim boyer
tim at denmantire.com




More information about the MIMEDefang mailing list