[Mimedefang] best practices for handling filename extensions

Dianne Skoll dfs at roaringpenguin.com
Thu Oct 5 09:27:22 EDT 2017

On Thu, 5 Oct 2017 14:04:59 +0200
Mark Coetser <mark at tux-edo.co.za> wrote:

> Pretty sure the filetype matching is done by checking the actual mime 
> type of the file not just what the file extension is, so just
> renaming the file will still not allow the file through.

The sample filter doesn't do that; it only looks at the actual filename.
Some people have written code that probes the file to figure out the MIME
type, but that code's not part of the MIMEDefang distribution.



More information about the MIMEDefang mailing list