jamesoff.net




22
Jul
2005
0

BitDefender in Exim

After playing with BitDefender’s free ‘bdc’ command-line scanner for FreeBSD, I’ve set up the mailserver at work to scan with clamav and then BitDefender. Since I couldn’t find any canned examples online for how to do this, other than Exim’s documentation for wiring up a generic command-line scanner, I thought I’d share it. drop message = This message contains malware ($malware_name) [scanner2] set acl_m0 = cmdline:\ /usr/local/bdc/bdc –arc %s:\ infected:\ infected. (.+) malware = */defer_ok [scanner2] is for indicating to me which scanner spotted the virus (for stats and debugging). The set acl_m0 stuff is to do with using muliple virus scanners. In the first section of my Exim config I have av_scanner = $acl_m0. If you’re not using multiple scanners, then set av_scanner to cmdline:\ /usr/local/bdc/bdc --arc %s:\ infected:\ infected. (.+) and delete the set line from the ACL block.


Add a comment