Re: [exim] Exim+ClamAV header

Góra strony
Delete this message
Reply to this message
Autor: Frank Elsner
Data:  
Dla: exim-users
Temat: Re: [exim] Exim+ClamAV header
On Wed, 26 Oct 2005 17:20:49 +0700 Eshengazin S. Kuat wrote:
> 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`


The end of my check_smtp_data ACL:

  warn    message = :after_received:X-Virus-Check: \
          ${run{/usr/ClamAV/bin/clamd --version}\
          {${extract{1}{/}{$value}}/${extract{2}{/}{$value}}}\
          {unchecked}} on $primary_hostname; $tod_full


gives the line

X-Virus-Check: ClamAV 0.87/1146 on c64.shuttle.de; Mon, 24 Oct 2005 12:43:05 +0200



--Frank Elsner