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. -- -- Andreas :-)