GFI Software

Welcome to the GFI Software community forum! For support please open a ticket from https://support.gfi.com.

Home » GFI User Forums » Kerio Connect » Attachment filter removes zipped JS-files
Attachment filter removes zipped JS-files [message #123061] Fri, 24 July 2015 15:08 Go to next message
Grabsteinschubser is currently offline  Grabsteinschubser
Messages: 64
Registered: May 2013
Location: Berlin
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


Re: Attachment filter removes zipped JS-files [message #123555 is a reply to message #123061] Fri, 14 August 2015 14:39 Go to previous messageGo to next message
Kedar
Messages: 356
Registered: April 2005
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>
Re: Attachment filter removes zipped JS-files [message #129919 is a reply to message #123061] Mon, 23 May 2016 14:25 Go to previous messageGo to next message
howare is currently offline  howare
Messages: 20
Registered: May 2015
Hello,

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

Re: Attachment filter removes zipped JS-files [message #129920 is a reply to message #129919] Mon, 23 May 2016 14:32 Go to previous messageGo to next message
Carsten Maas (Kerio) is currently offline  Carsten Maas (Kerio)
Messages: 220
Registered: September 2011
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
Senior Technical Marketing Engineer
Kerio Technologies

Kerio Deutschland youtube Channel
http://www.youtube.com/KerioDeutschland
Re: Attachment filter removes zipped JS-files [message #129921 is a reply to message #129920] Mon, 23 May 2016 14:41 Go to previous messageGo to next message
howare is currently offline  howare
Messages: 20
Registered: May 2015
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.
Re: Attachment filter removes zipped JS-files [message #129922 is a reply to message #129921] Mon, 23 May 2016 14:45 Go to previous messageGo to next message
howare is currently offline  howare
Messages: 20
Registered: May 2015
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?
Re: Attachment filter removes zipped JS-files [message #129923 is a reply to message #129922] Mon, 23 May 2016 15:01 Go to previous messageGo to next message
Carsten Maas (Kerio) is currently offline  Carsten Maas (Kerio)
Messages: 220
Registered: September 2011
That should be possible.

Carsten Maas
Senior Technical Marketing Engineer
Kerio Technologies

Kerio Deutschland youtube Channel
http://www.youtube.com/KerioDeutschland
Re: Attachment filter removes zipped JS-files [message #129973 is a reply to message #129923] Wed, 25 May 2016 09:08 Go to previous messageGo to next message
howare is currently offline  howare
Messages: 20
Registered: May 2015
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]

Report message to a moderator

Re: Attachment filter removes zipped JS-files [message #129999 is a reply to message #123061] Thu, 26 May 2016 15:16 Go to previous messageGo to next message
freakinvibe is currently offline  freakinvibe
Messages: 588
Registered: April 2004
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 Services AG - IT Support Services in Basel, Switzerland
https://dexionag.ch
Re: Attachment filter removes zipped JS-files [message #130103 is a reply to message #129999] Wed, 01 June 2016 15:19 Go to previous messageGo to next message
Maerad is currently offline  Maerad
Messages: 275
Registered: August 2013
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.
Re: Attachment filter removes zipped JS-files [message #130280 is a reply to message #123061] Thu, 09 June 2016 16:29 Go to previous message
howare is currently offline  howare
Messages: 20
Registered: May 2015
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:
  


Current Time: Fri Mar 24 21:31:33 CET 2023

Total time taken to generate the page: 0.01794 seconds