On Wed, 12 Apr 2006 00:01:50 +0200 jkfloris wrote:
> Hello,
> 
> I'm using Exim 4, Clamav, fetchmail, Spamassassin and Courier-Imap as my 
> mail server
> everything is working fine, so that's not the issue.
> 
> But I want Clamav to ad a line to every email body or header. For 
> example: "virus scanned by Clamav"
> or in the header "X-Virus status: No"
> 
> Is this possible with this software?

Not with clamav, but exim can do it.

My exim onfig contains

|  acl_smtp_data     = check_smtp_data
|  acl_not_smtp      = check_non_smtp
|    ..
|  check_smtp_data:
|    ..
|    deny    message = Message contains malware ($malware_name)
|            log_message = Malware ($malware_name) for $recipients
|            malware = *
|  
|    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
|  
|    accept
|  
|  check_non_smtp:
|    ..
|    deny    condition = ${if !eq {$sender_address}{}{yes}{no}}
|            message = Message contains malware ($malware_name)
|            log_message = Malware ($malware_name) for $recipients
|            malware = *
|            control = freeze
|  
|    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
|  
|    accept


Regards        ______________________________________________________________ 
Frank Elsner  /                        c/o  Technische Universitaet Berlin   |
 ____________/                              ZRZ, Sekr. E-N 50                |
|                                           Einsteinufer 17                  |
| Phone: +49 30 314 23897                   D-10587 Berlin                   |
| eMail: [EMAIL PROTECTED]            Germany              ____________|
|_______________________________________________________________| RIAS Berlin

_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to