Hi,
I've tried in 2 variants. One with the avastdscan and one with commandlinescan.
The results were the same.
The avastprotocol must be avast2014 since with avast4 is not working anymore.
The content of the avastdscan.conf is:
plugname = 'avastdscan'
# edit this to match the location of your AvastD UNIX domain socket
#avastdudsfile = '/var/run/avast4/local.sock'
avastdudsfile = '/var/run/avast/scan.sock'
# edit this to block unscannable files (e.g. encrypted archives)
#archivewarn = off
#Specify the version of avast protocol. It Must be 'avast4' or 'avast2014'
#default is avast4 for compatibility
avastprotocol = 'avast2014'
exceptionvirusmimetypelist = '/etc/e2guardian/lists/contentscanners/exceptionvirusmimetypelist'
exceptionvirusextensionlist = '/etc/e2guardian/lists/contentscanners/exceptionvirusextensionlist'
exceptionvirussitelist = '/etc/e2guardian/lists/contentscanners/exceptionvirussitelist'
exceptionvirusurllist = '/etc/e2guardian/lists/contentscanners/exceptionvirusurllist'
The content of the commandlinescan.conf is:
plugname = 'commandlinescan'
# Standard lists of file types & websites not to scan
exceptionvirusmimetypelist = '/etc/e2guardian/lists/contentscanners/exceptionvirusmimetypelist'
exceptionvirusextensionlist = '/etc/e2guardian/lists/contentscanners/exceptionvirusextensionlist'
exceptionvirussitelist = '/etc/e2guardian/lists/contentscanners/exceptionvirussitelist'
exceptionvirusurllist = '/etc/e2guardian/lists/contentscanners/exceptionvirusurllist'
# Program to run & initial arguments - filename for scanning will be appended
#progname = /path/to/scanner
progname = /bin/scan
# At least one of the following three options must be defined!
# They are checked in the following order, with the first match determining
# the scan result:
# virusregexp - regular expression for extracting virus names from
# the scanner's output
# cleancodes - program return code(s), as a comma-separated list, for
# uninfected files
# infectedcodes - program return code(s), as a comma-separated list, for
# infected files
#virusregexp = (someregexp)
# Which submatch of the above contains the virus name? (0 = all matched text)
#submatch = 1
# cleancodes = 0
# infectedcodes = 1,2,3
cleancodes = 0
infectedcodes = 1
# Default result when none of the other options triggers a match
# Valid values are "infected" and "clean"
#defaultresult = infected
defaultresult = infected
TIA,
Marius