If you would like to integrate “AVG Anti-Virus Free Edition” into Exim, using the ExiScan patch, this is actually quite easy.
Just insert the following fragment into your Exim config:
# Reject virus infected messages. # Add message to implicit X-ACL-Warn: header warn message = This message contains malware ($malware_name) set acl_m0 = cmdline:\ /usr/bin/avgscan --arc %s; echo -e \N"\navg_retval $?"\N:\ avg_retval 5:\ \NVirus identified *(.*)$\N malware = * log_message = This message contains malware (avg:$malware_name)
Let me know if this works for you — I hacked this up quite quickly, but it seems to do its job…