SV: Stopping .js in .zip

Trond M. Markussen markussen at
Tue Feb 21 13:53:02 UTC 2017

Thanks for the feedback. I noticed that there was no " Archives Are" setting
in MailScanner.conf, presumably  this was added in a later version (we are
running 4.74.16).

- Is there another way to make sure .js witnin .zip files are stopped (using
the current version)?
- Would you recommend upgrading to the latest version (if so, is this a
complicated and/or risky process)?


Trond M.

-----Opprinnelig melding-----
Fra: MailScanner
[ at] På
vegne av FUNK Gábor
Sendt: 20. februar 2017 15:27
Til: MailScanner Discussion
Emne: Re: Stopping .js in .zip

>> Could someone please let me know the  best way to stop javascript (.js)
files within .zip files?

something like this:

file: MailScanner.conf
     Archives Are = zip rar ace lzh gz dat 1 2 7z gzip bzip bz bz2 cab xz
     Archives: Filename Rules = %etc-dir%/rules/file/_filename-zip.rules

file: _filename-zip.rules
     FromOrTo: default    /etc/MailScanner/filename-zip.rules.conf

file: filename-zip.rules.conf | grep js
     deny    \.js$        javascript file  .js pontentally containing 
malicious trojan


MailScanner mailing list
mailscanner at

More information about the MailScanner mailing list