Connect. Communicate. Collaborate. Securely.

Home » Kerio User Forums » Kerio Connect » Attachment filter removes zipped JS-files
  •  
Grabsteinschubser

Messages: 64
Karma: 4
Send a private message to this user
Hi everyone,

*.js is not in mail attachment rules. If I send a *.js file to my account I receive it. If I zip it the attachement filter removes the attachment.

I tested it with admin-bar.js from wordpress:
Quote:
This part of mail contained prohibited file extension within a zip attachment:

File name: admin-bar.zip
File size: 4.94 kB
File name in zip: "admin-bar.js"


The attachment was removed by Kerio Connect 8.5.1


  •  
Radek Sip (Kerio)

Messages: 1302
Karma: 48
Send a private message to this user
Filtered content of ZIP archive is defined in mailserver.cfg

<list name="ZipFilterExtensions">
  <listitem>
    <variable name="Extension">.exe</variable>
  </listitem>
  <listitem>
    <variable name="Extension">.com</variable>
  </listitem>
  <listitem>
    <variable name="Extension">.bat</variable>
  </listitem>
  <listitem>
    <variable name="Extension">.cmd</variable>
  </listitem>
  <listitem>
    <variable name="Extension">.scr</variable>
  </listitem>
  <listitem>
    <variable name="Extension">.vbs</variable>
  </listitem>
  <listitem>
    <variable name="Extension">.vbe</variable>
  </listitem>
  <listitem>
    <variable name="Extension">.js</variable>
  </listitem>
  <listitem>
    <variable name="Extension">.jse</variable>
  </listitem>
  <listitem>
    <variable name="Extension">.wsf</variable>
  </listitem>
  <listitem>
    <variable name="Extension">.wsh</variable>
  </listitem>
  <listitem>
    <variable name="Extension">.msc</variable>
  </listitem>
</list>

Stay Connected Anytime, Anywhere. Discover Kerio Cloud!
  •  
howare

Messages: 16
Karma: 0
Send a private message to this user
Hello,

can i edit the mailserver.cfg, that .xlsm other other will be filtered too ?

  •  
Carsten Maas (Kerio)

Messages: 247
Karma: 27
Send a private message to this user
If you mean attachments with .xlsm as suffix, just add it in the dialog. Simply write .xlsm in the field instead of choosing an extension from the list (see screenshot)


Carsten Maas
Technical Marketing Engineer
Kerio Technologies

Kerio Deutschland youtube Channel
http://www.youtube.com/KerioDeutschland
  •  
howare

Messages: 16
Karma: 0
Send a private message to this user
Ah okay, that meens, that the "Discard zip archive containing files..." use the Filter rules too?

I thought, that this are two different Lists.

Thanks for your fast reply.
  •  
howare

Messages: 16
Karma: 0
Send a private message to this user
I thought we meen something different.

If i add File extensions to the filter rules, they are not in the "ZipFileExtensions" in our mailserver.cfg

Can i add File extensions to the .cfg, if the Server is stopped?
  •  
Carsten Maas (Kerio)

Messages: 247
Karma: 27
Send a private message to this user
That should be possible.

Carsten Maas
Technical Marketing Engineer
Kerio Technologies

Kerio Deutschland youtube Channel
http://www.youtube.com/KerioDeutschland
  •  
howare

Messages: 16
Karma: 0
Send a private message to this user
Since i added entrys in the mailconfig.cfg to the ZipFileExtensions, no Extension will be identified.

<list name="ZipFilterExtensions">
  <listitem>
    <variable name="Extension">.exe</variable>
  </listitem>
  <listitem>
    <variable name="Extension">.com</variable>
  </listitem>
  <listitem>
    <variable name="Extension">.bat</variable>
  </listitem>
  <listitem>
    <variable name="Extension">.cmd</variable>
  </listitem>
  <listitem>
    <variable name="Extension">.scr</variable>
  </listitem>
  <listitem>
    <variable name="Extension">.vbs</variable>
  </listitem>
  <listitem>
    <variable name="Extension">.vbe</variable>
  </listitem>
  <listitem>
    <variable name="Extension">.js</variable>
  </listitem>
  <listitem>
    <variable name="Extension">.jse</variable>
  </listitem>
  <listitem>
    <variable name="Extension">.wsf</variable>
  </listitem>
  <listitem>
    <variable name="Extension">.wsh</variable>
  </listitem>
  <listitem>
    <variable name="Extension">.msc</variable>
  </listitem>
  <listitem>
    <variable name="Extension">.docm</variable>
  </listitem>
  <listitem>
    <variable name="Extension">.xlsm</variable>
  </listitem>
  <listitem>
    <variable name="Extension">.msi</variable>
  </listitem>
  <listitem>
    <variable name="Extension">.reg</variable>
  </listitem>
  <listitem>
    <variable name="Extension">.shb</variable>
  </listitem>
  <listitem>
    <variable name="Extension">.shs</variable>
  </listitem>
  <listitem>
    <variable name="Extension">.sys</variable>
  </listitem>
  <listitem>
    <variable name="Extension">.url</variable>
  </listitem>
  <listitem>
    <variable name="Extension">.vb</variable>
  </listitem>
  <listitem>
    <variable name="Extension">.vxd</variable>
  </listitem>
</list>

[Updated on: Wed, 25 May 2016 09:08]

  •  
freakinvibe

Messages: 1467
Karma: 54
Send a private message to this user
This works for me, I have added the .dotm extension to be indentified within the .zip file.

Have you done the editing of mailserver.cfg in the correct order?


  1. Stop Mailserver
  2. Edit mailserver.cfg
  3. Start Mailserver


Dexion AG - The Blackberry Specialists in Switzerland
http://www.dexionag.ch
  •  
Maerad

Messages: 147
Karma: 29
Send a private message to this user
Just to clearify things a bit... Smile

In the admin site you can config the forbidden Attachments. You can also enable to filter out forbidden Attachments in ZIP-Files BUT those are different to the list in the admin website.

The Mailserver.cfg has a section <list name="AttachFilter">, those are the filters from the website. The ZIP Filters are in the <list name="ZipFilterExtensions"> and can only be edited in the file.

If you use Windows, copy the mailserver.cfg out of the kerio connect dir to the desktop, edit it there, save it, stop the server and copy it back to the folder and start the server. That's because the directory needs admin rights to edit AND the file is in use when kerio is running.
  •  
howare

Messages: 16
Karma: 0
Send a private message to this user
Hey, sorry for my late answer, i was in holidays.

Everythink works fine, it was my mistake.

Stop, edit and start works.
Previous Topic: API - Managing calendar data
Next Topic: Active Directory users Authentication
Goto Forum:
  


Disclaimer:
Kerio discussion forums are intended for open communication between forum members and may contain information and material posted by members which may be useful in learning about Kerio products. The discussion forums are not intended to provide technical support for any specific product. Any information implied or expressed in the discussion forums is that of the posting member. Kerio is in no way responsible for the information posted in the forums, or its accuracy. Kerio employees may participate in the discussions, but their postings do not represent an offical position of the company on any issues raised or discussed. Kerio reserves the right to monitor and maintain the forums to promote free and accurate exchange of information.

Current Time: Sat Dec 03 22:48:43 CET 2016

Total time taken to generate the page: 0.01543 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.