This describes the modular mimedefang-filter that we have created at XS4ALL, to be used with MIMEDefang.
Here are the slides of a talk I gave at the NLUUG conference on Email and beyond, may 26 in the netherlands, and also at YAPC::EU 2005 in Braga.
To use this, download the example distribution here:
Unpack in a separate directory (the example uses /usr/local/etc/mimedefang, but you can use any path as long as you change the use lib statement in the mimedefang-filter-select file).
Then change mimedefang to use mimedefang-filter-select as the "filter". Use the "-F" option to mimedefang-multiplexor or set the SUBFILTER setting in mimedefang.conf.
UPDATE. To support a few newer features of mimedefang, there are some updates to the files in the distribution above. These can be found in this archive: mimedefang-modular-20061110.tar.gz. The files in the 20061110 version are replacements for the files in the original distribution.
This example is pretty much the same as the suggested-minimum-filter-for-windows-clients that is supplied as an example to mimedefang, except that it is split up into multiple independent modules.
Note that the suggested-minimum-filter-for-windows-clients that is modified here, is taken from an older version of mimedefang (2.49). It does not correspond to the latest filter as distributed with mimedefang itself. The whole point of this framework is to allow you to write your own filter, from scratch. The suggested minimum filter is only used as an example of what it would look like.
The distribution contains these files: