On Mon, 26 Feb 2001 16:13:56 +0100, you wrote:
(Q: is it possible to configure Amavis to send info about the virus detected to the recipient person? Currently it only tells that a "virus have been found" and includes original mail's headers but it doesn't tell which virus was found; this last info is sent only to the postmaster or virusalert's mail address you have defined but not to the recipient or sender address).
You probably can. Check the file scanmails (/usr/sbin/scanmails)
Ok. I've hacked a bit this shell-script and I have it now :-) Really simple task. Basically I've added: virusinfo=`grep "Found virus" ${tmpdir}/${logfile}` (it gets the vital information from av output) And then I've included the following lines at section feeding sendmail: Virus related info: ${virusinfo} This works with Trend Micro FileScanner (I'm using the one which comes with Viruswall package ;-)). For other av's you'll have to modify by yourself. A example virus report with my "patch": ====== V I R U S A L E R T Our viruschecker found a VIRUS in a mail from "roman@madrid.com" to you. Delivery of the email was stopped! Virus related info: *** Found virus Eicar_test_file in file /var/tmp/scanmails28662/unpacked/983203995.28683-0.emilio Please contact your system administrator for details ====== I think recipient & sender should always know about the virus which is actually disturbing them :-) =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= ** RoMaN SoFt / LLFB ** roman@madrid.com http://pagina.de/romansoft ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~