[Mimedefang] Getting MIMEDefang to ignore .zip files and contents

Cormack, Ken ken.cormack at Roadway.com
Wed Jul 19 10:53:08 EDT 2006


Look inside /etc/mail/mimedefang-filter.

Somewhere below this line:

	sub filter_bad_filename ($) {

You will find the following lines:

	    # Look inside ZIP files
	    if (re_match($entity, '\.zip$') and
	        $Features{"Archive::Zip"}) {
	        my $bh = $entity->bodyhandle();
	        if (defined($bh)) {
	            my $path = $bh->path();
	            if (defined($path)) {
	                return re_match_in_zip_directory($path, $re);
	            }
	        }
	    }

Comment-out those lines by preceding them with a hash, line this:

	#    # Look inside ZIP files
	#    if (re_match($entity, '\.zip$') and
	#        $Features{"Archive::Zip"}) {
	#        my $bh = $entity->bodyhandle();
	#        if (defined($bh)) {
	#            my $path = $bh->path();
	#            if (defined($path)) {
	#                return re_match_in_zip_directory($path, $re);
	#            }
	#        }
	#    }

Save your changes, and then run the following command:

	md-mx-ctrl reread

This comments-out the lines that examine .zip files, deactivating them from
your filter.

Ken


-----Original Message-----
From: mimedefang-bounces at lists.roaringpenguin.com
[mailto:mimedefang-bounces at lists.roaringpenguin.com] On Behalf Of Paul
Rawlings
Sent: Wednesday, July 19, 2006 9:36 AM
To: mimedefang at lists.roaringpenguin.com
Subject: [Mimedefang] Getting MIMEDefang to ignore .zip files and contents


My Linux administrator is currently away so I'm hoping this list can
help.
We're running MIMEDefang and one feature I've found that it does which
our old system didn't is check inside a .zip file.
We need to be able to receive software updates from various companies
and these often appear as unsafe attachments and are stripped out.
We've always told partners and customers to submit any such files inside
a .zip file as our old system would then ignore the file and allow it
through - not 100% safe I appreciate, but it is how we wanted it.
I've now got partners on the phone and my own software development team
telling me they cannot get software updates via e-mail as our system is
stripping them out.

Can anybody point me in the right direction to possibly configure the
MIMEDefang system so that if it sees a .zip attachment it totally
ignores it and allows it through no matter what it can see inside the
.zip?
Maybe even to see a .zip and not even attempt to look inside it and let
it past?

I did phone my Linux administrator, but he is on holiday and his reply
of "I'm not really sure, I'll look when I get back" whereas is fair
enough, I need to try and get around this issue ASAP.

Cheers.

Paul

_______________________________________________
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 MIMEDefang at lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang




More information about the MIMEDefang mailing list