The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Getting MailScanner to stop scanning .zip files.

Discussion in 'E-mail Discussions' started by TogaDave, Dec 17, 2005.

  1. TogaDave

    TogaDave Well-Known Member

    Joined:
    Apr 13, 2003
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    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. RickG

    RickG Well-Known Member

    Joined:
    Feb 28, 2005
    Messages:
    238
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    North Carolina
    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. TogaDave

    TogaDave Well-Known Member

    Joined:
    Apr 13, 2003
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    Awesome, thank you! Going to try this out now.
     
  4. TogaDave

    TogaDave Well-Known Member

    Joined:
    Apr 13, 2003
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    Worked like a charm, THANKS AGAIN!
     
  5. dsampaio

    dsampaio Member

    Joined:
    Mar 14, 2004
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Worked very well here!

    Thanks!
     
Loading...

Share This Page