Hi, On Wed, Jun 14, 2017 at 2:41 PM, Andreas Schamanek <scham...@fam.tuwien.ac.at> wrote: > > On Wed, 14 Jun 2017, at 12:34, Noel Jones wrote: > >> > I have a series of mime patterns to automatically reject file types >> > including com, bat, exe, etc. It appears one pattern is matching >> > incorrectly, ... >> >> Rather than try to debug your expression, I'll refer you to the nice >> example on the header_checks man page. That example was updated not >> too long ago to fix a similar false positive. >> http://www.postfix.org/header_checks.5.html > > BTW, I know it's just an example, but it's so wonderfully extensive > that I feel like suggesting to add the frequently abused `.jar` to the > regex.
Thanks very much for this. I've started with the example in header_checks and expanded it further to include a few other extensions like jar and dotm.