Page 1 of 1

ClamAV and mappaer error

Posted: Mon Jun 26, 2006 10:14 am
by rpl
Hi. I installed and configured ClamAV 0.88.2 following the Technical Note from the Knowledge Base on a Suse 10 OSS x64 system.

Restarting the service router I got following error ( # tail -f fatal)

ERROR Service Router(Service Router) Mon Jun 26 16:00:32 2006
[OM 5181] Reply timed out or invalid - Mapper protocol problem.
Command sent: QUIT Please Close This Session
Reply received: 220 Virus Scanning Client Ready
Pid of logging process: 22135

In the daemon.stderr I found:
# tail daemon.stderr
/var/opt/scalix/rules/omvscan.map: line 976: return: can only `return' from a function or sourced script

Further information:
/var/opt/scalix/rules # ls -l
-rw-r--r-- 1 root root 172 2006-06-26 14:59 ALL-ROUTES.VIR
-rw-r--r-- 1 root root 67 2006-06-26 15:01 ndninfo.txt
-r-xr-xr-x 1 root root 35644 2006-06-26 15:05 omvscan.map

/var/opt/scalix/rules # cat ALL-ROUTES.VIR
VIRUS-UNCLEANED=1 ACTION=REJECT NDN-INFO=!ndninfo.txt
VIRUS-UNCLEANED=0 VIRUS-FOUND=1 ACTION=ALLOW NOTIFY="A virus was found in this message. It wasasuccessfully cleaned."

/var/opt/scalix/rules # cat ndninfo.txt
A virus was found in your message. Scan your computer for viruses.
hermes:/var/opt/scalix/rules #

The omvscan.map is unchanged copied from ..../examples/general.
Any further information neede?
Thanks for help.

clamd.conf

Posted: Mon Jun 26, 2006 12:42 pm
by rpl
Reviewing the /etc/clamd.conf I found, that the used logfile /var/log/clamd was missing.
# touch /var/log/clamd
# chown vscan:vscan /var/log/clamd
# /etc/init.d/clamd stop
# /etc/init.d/clamd strt
# omoff -d 0 rtr
# omon rtr

Now virus scanning works fine.