Postfix Header and Body Checks

Discussion in 'General' started by MisterRichard, Jun 23, 2016.

  1. MisterRichard

    MisterRichard Member

    Hi,
    I would like to block these extensions : .js, .exe, .bat, .com, .scr (any others ?)
    I have added this :
    /^Content-(Disposition|Type).*name\s*=\s*"?(.*\.(com|js|bat|exe|scr))(\?=)?"?\s*(;|$)/x

    to the the mail content filter in:
    Global filters
    postfix header and body checks

    however when I test it, only the .scr is returning that it has been blocked by postfix.

    What am I doing wrong ?

    Thanks,

    Richard
     
  2. sjau

    sjau Local Meanie Moderator

    try to add them as mime header checks also
     

Share This Page