Clamav Error

Best practice information from Scalix users relating to integration of Scalix with other products.

Moderator: ScalixSupport

rcabana
Posts: 23
Joined: Mon Nov 20, 2006 6:44 pm

Clamav Error

Postby rcabana » Tue Nov 21, 2006 4:16 pm

I'm fairly new to Linux and am attepting to install Scalix. So far I have/had everything working until I tried to install clamav. Once I installed clamav my service router stopped and I cannot seem to get it going again.

I'm sure I changed a config file someplace and cannot recall where or what.

System details:
RH EL4
Scalix ver 11.0.0.565 - beta2

Any assistance would be much appreciated

Thanks
Ray

Here is the error:

ERROR Service Router(Service Router) 11.21.06 15:11:17
[OM 5181] Reply timed out or invalid - Mapper protocol problem.
Command sent: <none - expect greeting reply>
Reply received: 503 Configuration for anti-virus engine "ClamAV" broken - no engine specified


ERROR Service Router(Service Router) 11.21.06 15:11:17
[OM 5181] Reply timed out or invalid - Mapper protocol problem.
Command sent: QUIT Please Close This Session
Reply received: 220 Virus Scanning Client Ready


ERROR Service Router(Service Router) 11.21.06 15:11:17
[OM 5183] A Mapper error has been detected.
-> rsl_GetMapperTimeOut
-> cust_GetCustomiseInfo
<- cust_GetCustomiseInfo
<- rsl_GetMapperTimeOut
-> os_fcntl
<- os_fcntl
-> os_fcntl
<- os_fcntl
-> rsl_ReadMapperReply
-> rsl_GetMapperTimeOut
<- rsl_GetMapperTimeOut
-> os_StringToInt
<- os_StringToInt
-> rsl_CheckMapperReply
<- /build/scalix-MAIN/src/lib/rsl/rsl_match.c:244[100,5183]
<- /build/scalix-MAIN/src/lib/rsl/rsl_match.c:244[100,5183]


SERIOUS ERROR Service Router(Service Router) 11.21.06 15:11:17
[OM 5183] A Mapper error has been detected.
-> cust_GetCustomiseInfo
<- cust_GetCustomiseInfo
<- rsl_GetMapperTimeOut
-> os_fcntl
<- os_fcntl
-> os_fcntl
<- os_fcntl
-> rsl_ReadMapperReply
-> rsl_GetMapperTimeOut
<- rsl_GetMapperTimeOut
-> os_StringToInt
<- os_StringToInt
-> rsl_CheckMapperReply
<- /build/scalix-MAIN/src/lib/rsl/rsl_match.c:244[100,5183]
<- /build/scalix-MAIN/src/lib/rsl/rsl_match.c:756[100,5183]
<- /build/scalix-MAIN/src/lib/rsl/rsl_match.c:1446[100,5183]

chris
Scalix Star
Scalix Star
Posts: 321
Joined: Mon May 09, 2005 2:56 pm
Location: Freiburg, Germany

Postby chris » Tue Nov 21, 2006 9:36 pm

Hi,

in the short term, remove ClamAV from your routing to restore service. Maybe check .bash_history to see which files you changed?

In the long term, check out this howto http://www.scalix.com/wiki/index.php?ti ... os/Amavisd for installing ClamAV as part of amavisd, which I can highly recommend.

Cheers,

Chris

rcabana
Posts: 23
Joined: Mon Nov 20, 2006 6:44 pm

Postby rcabana » Tue Nov 21, 2006 10:37 pm

Thanks for the pointers......

I already started installing amavisd, since it does seem like the best way to go

Thanks,
Ray

chris
Scalix Star
Scalix Star
Posts: 321
Joined: Mon May 09, 2005 2:56 pm
Location: Freiburg, Germany

Postby chris » Tue Nov 21, 2006 10:48 pm

The great advantage of amavis is that you have a single point in your mail routing which can take care of many smaller steps e.g. anti-spam, anti-virus anti-whatever so it simplifies things greatly compared to routing mail to each instance seperately.

Chris

KKJensen
Posts: 142
Joined: Wed Sep 06, 2006 9:34 am
Contact:

Postby KKJensen » Thu Nov 23, 2006 2:24 pm

Could either of you suggest a good place to read/view an overview of how it all works? I've followed the wiki and have been going in circles trying to figure out what is wrong with my sockets etc etc. The wiki says "how" but it doesn't really break it down into "how to install amavisd" and smaller topics like "how to add clamav/clamd to amavisd" and "how to add spamassassin to amavisd". I don't know at what point in the whole process I'm making the error.

rcabana
Posts: 23
Joined: Mon Nov 20, 2006 6:44 pm

Postby rcabana » Thu Nov 23, 2006 5:12 pm

I'm in the same boat as you. I followed the Wiki doc, but many items within are assumed you know what they are talking about, e.g. editing the amavisd config file. I'm still trying to figure most of the stuff out and have not gotten anything to work.

I broke the service router when installing clamav then I installed ver 11 which fixed the service router, but I broke it again installing amavis.

Once I figure out what's going on myself I'll be happy to share my experience.

Ray

KKJensen
Posts: 142
Joined: Wed Sep 06, 2006 9:34 am
Contact:

Postby KKJensen » Thu Nov 23, 2006 7:38 pm

Are you using FC5 and Scalix 11? Some directories changed with Scalix 11 and FC5 uses clamav-server instead of clamd...but I haven't figured out how all the sockets work yet... I've been discussing this with the wiki howto author in this thread http://www.scalix.com/community/viewtopic.php?t=4614&postdays=0&postorder=asc&start=0

rcabana
Posts: 23
Joined: Mon Nov 20, 2006 6:44 pm

amavisd

Postby rcabana » Mon Dec 04, 2006 3:10 pm

RHEL4
Scalix 11 Beta 2

I tried to config the amavisd config file as the wiki specifies but I keep getting this error when I start the services.

[root@redhat/]# etc/init.d/amavisd start
Starting Mail Virus Scanner (amavisd): '=' is not a valid variable name at /usr/sbin/amavisd line 380
BEGIN failed--compilation aborted at /usr/sbin/amavisd line 380.
[FAILED]

Here is line 380: use vars @EXPORT;

I do not believe this is one of the line I was suppose to edit.

Any thoughts on why I'm getting this error?

Thanks,
Ray

KKJensen
Posts: 142
Joined: Wed Sep 06, 2006 9:34 am
Contact:

Postby KKJensen » Mon Dec 04, 2006 3:58 pm

I finally got mine going...a bit of cat & mouse to find the problem but it's running well now...I just can't figure out how to update the antivirus definitions.

My line 380 doesn't match yours...mine is a dozen or so lines below yours....have you added anything to this file? This was not one that needed to be modified to get things working. The amavisd files I had to edit were:

/etc/amavisd/amavisd.conf (amavisd configuration)
/etc/clamd/amavisd.conf (clamd config...in spite of it's name)

Aside from these two there was a couple startup scripts.

rcabana
Posts: 23
Joined: Mon Nov 20, 2006 6:44 pm

Postby rcabana » Mon Dec 04, 2006 4:09 pm

Yes I wrestled with this config file and I know I added lines. Maybe the best idea is to just start again.

If you don't mind sharing what is your line 380, so I can maybe figure out where I went wrong.

As for the updates, I know freshclam updates the clamav def's.

Thanks again,
Ray

rcabana
Posts: 23
Joined: Mon Nov 20, 2006 6:44 pm

Postby rcabana » Mon Dec 04, 2006 4:15 pm

Yes I wrestled with this config file and I know I added lines. Maybe the best idea is to just start again.

If you don't mind sharing what is your line 380, so I can maybe figure out where I went wrong.

As for the updates, I know freshclam updates the clamav def's.

Thanks again,
Ray

KKJensen
Posts: 142
Joined: Wed Sep 06, 2006 9:34 am
Contact:

Postby KKJensen » Mon Dec 04, 2006 4:28 pm

When I start the clamav-server it says it's out of date and needs updating...but I can't find a freshclam file on the machine! Apparently clamav-server (which is the clam package for FC5) is clamd in a wrapper of some sort...I haven't read much else one it...it's just been a relief to have the spam filtering at least working.

Did you back up the file before modifying it? I heard it's possible to re-extract the file from the package rpm but I'm not the one to ask as this is my first linux project.

My problem came down to finding out what path was supposed to point at each .sock file. It's pretty well detailed in that link I posted earlier.

rcabana
Posts: 23
Joined: Mon Nov 20, 2006 6:44 pm

Postby rcabana » Mon Dec 04, 2006 4:42 pm

Here are my freshclam files:

[root@redhat /]# find . -name "freshclam"
./home/rc/clamav-0.88.6/freshclam
./etc/cron.daily/freshclam
./etc/logrotate.d/freshclam
./usr/bin/freshclam

Of coarse I didn't backup the file before destroying it...... :)

I guess I'll figure it out and use the link you provided......thanks!

KKJensen
Posts: 142
Joined: Wed Sep 06, 2006 9:34 am
Contact:

Postby KKJensen » Tue Dec 05, 2006 3:33 pm

I'm still getting something goofy.

When I run "freshclam" I get the following errors:
ERROR: Parse error at line 1: Unknown option UpdatLogFile.
ERROR: Can't parse the config file /etc/clamd.conf


I know the config file is now at /etc/clamd/amavisd.conf and NOT /etc/clamd.conf...but where do I change this so freshclam is looking at the right config file?

It also looks like there's maybe a typo in the name "UpdatLogFile" instead of "UpdateLogFile"...but anyway...that might also be something with permissions.

smjhays
Posts: 83
Joined: Thu Sep 28, 2006 2:07 pm

Postby smjhays » Tue Dec 05, 2006 4:36 pm

you need to install the updater package (clamav-update). One place it can be found is:

http://fedoraproject.org/extras/5/i386/ ... 1.fc5.html


Return to “Third Party Integration”



Who is online

Users browsing this forum: No registered users and 1 guest