hi, i am trying to block bad mime attachments (bat com exe etc) at the smtp level itself.
i used this guide http://www.cyberciti.biz/tips/postfix-block-mime-attachment-files.html /name=[^>]*\.(bat|com|exe|dll|vbs)/ REJECT however the above rules scans the entire file name instead of just the file extension resulting in false positives, for example .scr and .com present within filenames gets wrongly rejected * name="strace.Scripting-with-the-xss.pdf.txt" * filename="BOOKING.COM: Hotel 342802.PDF" is there any working sample which somebody could share that blocks bad file attachments without causing false positives thanks rajesh