[Mimedefang] Drop mails with pif attachements

Stefano McGhee SMcGhee at ARCweb.com
Thu Sep 4 08:57:02 EDT 2003


Hello Matthew,
	I'll take a stab at it.  Might be wrong though :P

> I'm trying to get mimedefang to drop emails that come in with pif
> attachments.  I have no problems filtering the attachment 
> with the $bad_ext

Reasonable to want to do that, given all the SoBig.

> I tried putting the following code in sub_filter, but to no effect:
> 
>     # Reject .pif extensions completely
>     if (lc($ext) eq "pif") {
>         action_bounce("PIF attachment not accepted");
>         return action_discard();
>     }

If you want to simply discard the message, why use action_bounce?  The
problem *might* be that you are trying to do two things: Bounce the message
and discard the message.  My guess is that MD might be confused as to what
to do.  Remove or comment out action bounce and see what happens.  My very
topical assessment of what you have there.

> 
> Any help appreciated.
> 

Hopefully, I did!

Cheers,

Stefano




More information about the MIMEDefang mailing list