[Mimedefang] Drop mails with pif attachements
Matthew Thomas
mthomas at biocontrolsys.com
Thu Sep 4 10:15:01 EDT 2003
> -----Original Message-----
> From: mimedefang-admin at lists.roaringpenguin.com
> [mailto:mimedefang-admin at lists.roaringpenguin.com] On Behalf
> Of Stefano McGhee
> Sent: Thursday, September 04, 2003 5:56 AM
> To: mimedefang at lists.roaringpenguin.com
> Subject: RE: [Mimedefang] Drop mails with pif attachements
>
> > 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.
> Stefano
Unfortunately, that wasn't it. Tried it.
It's my understanding that action_bounce bounces the entire email but
action_discard only drops the attachment. Maybe I'm wrong there. What is
the action_? To completely drop an email?
Thanks,
Matt Thomas
More information about the MIMEDefang
mailing list