Update:
Depends on the perl modules:
download:
clean_virus_email.pl
License
This software is GPL licensed.
Usage:
The raw email is fed into the script. Like: "MTA | clean_virus_email.pl"
The email is then cleaned from all attached content (programms, VBA scripts,
PDF and pictures). The HTML text is converted into "text/plain", which I
consider secure because there are no links to follow.
The resulting email then get an explanation about the cleaned content, and
the content is replaced as a sub-container in the email.
Then the email is given to the local MTA which submits it to the original
recipient.
Examples:
:0 * ^X-Amavis-Alert: INFECTED * !^X-Virus_Cleaner: clean { # mail is cleaned and re-fed into the mail system :0 wc | clean_virus_email.pl # save a copy to examine carefully :0 $MAILFOLDER/Virus_infected__use_with_CAUTION }
$virus_quarantine_method = 'pipe:argv=/usr/local/bin/clean_virus_email.pl';