Re: [exim] Exim+ClamAV header

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Eshengazin S. Kuat
Dátum:  
Címzett: worm
CC: exim-users
Tárgy: Re: [exim] Exim+ClamAV header
Victor V. Melnichenko пишет:

> How can i configure my exim.conf if i want that ClamAV add some header 
> to message. For example(clamav-milter+sendmail):
> X-Virus-Scanned: ClamAV 0.80/1142/Tue Oct 18 10:21:37 2005
>     clamav-milter version 0.80j
>     on domain.com
> X-Virus-Scanned: ClamAV version 0.87, clamav-milter version 0.87 on 
> domain.com
> X-Virus-Status: Clean
> X-Virus-Status: Clean

>
> How can i do this with exim+clamav?!
>
> Thanks
>

Not sure if this most right way , but on my box I do it in this way:

# This router matches local user mailboxes.
localuser:
driver = accept
check_local_user
headers_add = ${run {/bin/sh /etc/exim/clamstring.sh}}
transport = local_delivery

clamstring.sh contains next lines:
#!/bin/sh
echo X-Virus-Scanned: `clamd -V` on `hostname`