Postfix Header and Body Checks - blocked files extension

Discussion in 'Installation/Configuration' started by crashoverride, Dec 11, 2018.

  1. crashoverride

    crashoverride New Member

    hi all,
    i want to block "doc" attachments with the content-filter.

    i've made following rule:
    Filter: MIME-Header Filter
    RegEx: /name=[^>]*\.(bat|com|exe|dll|doc|vbs)/
    Action: WARN

    Files with the "doc" extension were blocked -> GOOD
    BUT Files with the "docx" extension were blocked ALSO -> BAD

    Both tests were logged in the logfile with WARN level.
    I've tested he REGEX in different ways. Always good.

    Any hints?!
     

Share This Page