Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Apr 2003
    Posts
    135

    Default Getting MailScanner to stop scanning .zip files.

    If someone on my server receives an email with a *legitimate* .exe file zipped up (for example, if someone on my server recieves a .zip file of a program that they just purchased), MailScanner is blocking the file.

    Another example is when someone tries to send me a .ico file that they have designed for me. The server blocks the .ico file, even if they .zip it first and just send me filename.zip.

    This creates all kinds of problems with customers not receiving legitimate zip files that they have requested.

    I want MS to continue blocking dangerous files like .exe and .ico, but I do not want it to scan incoming zip files for them.

    I have commented out this line in filetype.rules.conf:
    #deny self-extract No self-extracting archives No self-extracting archives allowed

    And I have zip allowed in filename.rules.conf
    allow \.zip$ - -

    Is there a way to get MS to stop scanning zip files for anything other than viruses?
    Thanks,
    Dave

  2. #2
    Member
    Join Date
    Feb 2005
    Location
    North Carolina
    Posts
    237

    Default

    Dave:

    In /usr/mailscanner/etc/MailScanner.conf, look for the configuration option:

    Maximum Archive Depth and make sure it is set as below (the default is 2):

    Maximum Archive Depth = 0

    The scenario you describe is a common one. By setting the Archive Depth to 0, the attachment is still scanned for virii, but MailScanner does not perform the filename/filetype checks on the files within the archive (i.e. zip file).

    Make sure you reload MailScanner (service MailScanner reload) after editing this file.

    Hope this helps -

    Rick

  3. #3
    Member
    Join Date
    Apr 2003
    Posts
    135

    Default

    Awesome, thank you! Going to try this out now.

  4. #4
    Member
    Join Date
    Apr 2003
    Posts
    135

    Default

    Worked like a charm, THANKS AGAIN!

  5. #5
    Member
    Join Date
    Mar 2004
    Posts
    23

    Default

    Worked very well here!

    Thanks!

Similar Threads & Tags
Similar threads

  1. How To Zip Large Amount of Files Into Multiple 'zip' Files?
    By Doug E in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-07-2010, 05:47 AM
  2. clamd not scanning inside zip files
    By DaveT in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-04-2007, 06:09 PM
  3. CLAMAV Connection --> Virus Scanning ZIP FILES
    By slesnick3 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-19-2005, 09:29 AM
  4. How to stop .zip files
    By ngchandak in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-31-2005, 04:58 AM
  5. ClamAV scanning zip files?
    By SageBrian in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-01-2004, 08:41 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube