Claude,

> I'm looking for a method allowing me to include a SHA1 or MD5 sum of the
> banned files, in log entries and warnings related to banned contents.
> The idea behind this that I'm looking for a simple method allowing me to
> search the VIRUS TOTAL site when an executable has been found which is
> suspected to be malware, although the virus scanner was not (yet) able
> to recognize it.

Not exactly what you are asking for, but amavisd does calculate a MD5
hash of the entire (non-decoded) mail body and makes it available
as a macro b, so adding a %b somewhere in a $log_templ will include
a body hash into a mail log entry. The body hash is also accessible
to custom hooks as $msginfo->body_digest .

Other than that, custom hooks code can be used to calculate hashes
of files in a directory:  $msginfo->mail_tempdir . '/parts'

  Mark

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 
 AMaViS-HowTos:http://www.amavis.org/howto/ 

Reply via email to