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,<[EMAIL
 PROTECTED]>,<[EMAIL PROTECTED]>,
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
[EMAIL PROTECTED]

_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to