Mail filter

Discussion in 'Installation/Configuration' started by stoney, Mar 29, 2013.

  1. stoney

    stoney New Member

    Hi

    In ISPConfig 3, i am trying to add an email filter that has more that 1 source.

    ie
    subject contains "this" or "this" or "that"

    is this possible

    Also

    Im trying to block .zip files from being received, i put this in the "Mail Content Filter".

    Filter
    MIME-Header Filter

    Regexp. Pattern
    /^Content-(Disposition|Type).*name\s*=\s*"?(.*\.(bat|exe|zip))(\?=)?”?\s*(;|$)/x


    But it doesnt work. Any suggestions

    Cheers
    John
     
  2. stoney

    stoney New Member

    OK

    Found out how to do this
    subject contains "this" or "this" or "that"

    i changed it in the custom rules to this

    ### BEGIN FILTER_ID:1
    if header :regex ["subject"] [".*this|that"] {
    fileinto "FOLDER";
    stop;
    }
    ### END FILTER_ID:1


    Still trying to find how to block attachments
     
  3. pititis

    pititis Member

    Hello,

    Try with this:

    Code:
    /name=[^>]*.(bat|com|exe|dll)/ 
    Filter type: MIME-Header Filter


    Cheers
     
  4. stoney

    stoney New Member

    Thanks for the help

    i did this in the end

    /filename=\"?(.*)\.(bat|zip|cmd|com|do|exe|hta|jse|rm|scr|pif|vbe|vbs|vxd|xl)\"?$/

    But i did find that i was being too quick in testing, i didn't realize that it took a little while for the filter to take affect.



    Cheers
     

Share This Page