urgend file type detection

"Steffen Heil" <[email protected]> Mon, 18 Oct 2004 19:32:51 +0200
Newsgroups gmane.mail.exim.exiscan.user
Message-ID <[email protected]>
Hi

I want to allow only mail through my sarge exim 4.34 heavy daemon server
with clamav that have
- NO attachments
- ONLY rtf, doc, pdf, txt, xls attachments Everything else should be
blocked.

However, I do not want to determine this by extension, but by content.
rfc, doc, pdf als xls should be detectable, as they have special file
structures. txt will propably more complicated.

Has anyone done this before? Where can I start? What can I do?

Regards,
  Steffen
smime.p7s (application/x-pkcs7-signature, 3.1 KB) - not displayed