* Ralf Hildebrandt <ralf.hildebra...@charite.de>: > * Charles Marcus <cmar...@media-brokers.com>: > > On 2012-01-03 1:18 PM, Ralf Hildebrandt <ralf.hildebra...@charite.de> wrote: > > >Also blocking "unwanted" attachments and double extensions (with > > >mime_header_checks or amavis) leaves only little stuff for clamav to > > >eat. > > > > Care to share your header_checks for blocking 'double extensions' (if > > you're doing it with header checks)? > > I used to do it that way (mime_header_checks): > http://listi.jpberlin.de/pipermail/postfixbuch-users/2011-June/056636.html
Well, that doesn't include the double extensions. Something along those lines should work: /name=\"(.*)\.([a-z]{3})\.([a-z]{3})\"$/ REJECT Double extension $2 and $3 -- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebra...@charite.de | http://www.charite.de