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
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
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