Koozali.org: home of the SME Server

How turn off Clamav antivirus?

OursPolaire

How turn off Clamav antivirus?
« on: July 29, 2007, 09:16:16 PM »
Hi,

I report the bug 3214 (http://wiki.contribs.org/bugzilla).  It seems that the WAN IP address become unstable and changing every 1-2 hours.  (SME v7.1.3)

I would like to do a test.  I would like to turn off Clamav to see if it is the cause.  I need also how to turn it on.  What is the command lines for doing this?

Thank you, OursPolaire.

Offline raem

  • *
  • 3,972
  • +4/-0
Re: How turn off Clamav antivirus?
« Reply #1 on: July 30, 2007, 02:43:47 AM »
OursPolaire

This is basic stuff which a read of the manuals would have answered.
They are linked at the top of these forum pages.
Look in server manager around Email section where you can enable/disable file scanning & email scanning without requiring the command line.

Read the section on the db command usage also.
http://wiki.contribs.org/DB_Variables_Configuration
...

OursPolaire

How turn off Clamav antivirus?
« Reply #2 on: July 30, 2007, 02:37:13 PM »
Hi Ray,

Thanks for your help :D .

I think I wasn't clear enough for what I looking for  :? .
I really want to turn off Clamav.  I want it 100% quiet, like it wasn't installed on SME.  I mean no updates of any kind, no running of any kind, no schedule are running...  Can you confirm the solution you gave me will stop everything?  I don't feel it is the case.

Maybe the solution is to remove Clamav and install it back later  8) .

Any idea, folks  :idea: ?

Ohh by the way  :!: , I am a rookie with stuff like programming and linux....

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
How turn off Clamav antivirus?
« Reply #3 on: July 30, 2007, 03:23:50 PM »
Quote from: "OursPolaire"
I really want to turn off Clamav.  I want it 100% quiet, like it wasn't installed on SME. I mean no updates of any kind, no running of any kind, no schedule are running...  Can you confirm the solution you gave me will stop everything?
Disabling virusscanning should stop it from updating it's virus definitions and scanning.
Quote from: "OursPolaire"
I don't feel it is the case.
Maybe the solution is to remove Clamav and install it back later  8) .
How do you get this idea? If so it seems like a bug to me :-)
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

OursPolaire

How turn off Clamav antivirus?
« Reply #4 on: July 30, 2007, 03:37:57 PM »
Hi Cactus,

I will try the solution.  I will give a feedback in a few hours.

OursPolaire

How turn off Clamav antivirus?
« Reply #5 on: July 30, 2007, 04:58:24 PM »
The solution doesn't work :( .

In server manager in the E-mail section I disabled Virus scanning.  In Antivirus (ClamAV), Scan entire filesystem = never.  And Quarantine infected files = disabled.

Then I rebooted and I have got an email of freshclam: Update failed.  So, that means that Clamav is still running somehow.

My feeling:  The solution will pass through the command lines.

--------------------------------------------------------------------------------

Maybe remove Installed packages:
- clamav-db.i386 0.90.1-1.el4.rf
- clam.i386 0.90.1-1.el4.rf
- clamd.i386 0.90.1-1.el4.rf

testing the impact and then

to install the newest version 0.91.1:
- clamav-db.i386 0.91.1-1.el4.rf
- clam.i386 0.91.1-1.el4.rf
- clamd.i386 0.91.1-1.el4.rf

Offline raem

  • *
  • 3,972
  • +4/-0
How turn off Clamav antivirus?
« Reply #6 on: July 30, 2007, 05:21:20 PM »
OursPolaire

> ..got an email of freshclam: Update failed.  So, that means that Clamav is still running somehow.

No it doesn't, it just means that the cron job that tries to update the clamav definitions failed, and that failed because you rebooted your machine and there was no connection to the remote database !!!

Look at /etc/cron.daily/freshclam, move that elsewheer if you must and restart crond

/etc/init.d/crond restart
Stopping crond:                                            [  OK  ]
Starting crond:                                            [  OK  ]


I really don't think your original issue has anything to do with clamav.
You have an unreliable connection, or incorrect setup, or incorrect kernel and/or packages installed.
...

OursPolaire

How turn off Clamav antivirus?
« Reply #7 on: July 30, 2007, 07:49:17 PM »
Quote from: "RayMitchell"

I really don't think your original issue has anything to do with clamav.
You have an unreliable connection, or incorrect setup, or incorrect kernel and/or packages installed.


You are probably right.  Do you know how to investigate this problem?:?:

For now I will check the quality of my WAN IP connection from my ISP.  8)

Offline raem

  • *
  • 3,972
  • +4/-0
How turn off Clamav antivirus?
« Reply #8 on: July 31, 2007, 01:45:57 AM »
OursPolaire

You should really take this back to the bug report you lodged.
http://bugs.contribs.org/show_bug.cgi?id=3214
Follow through on this until a resolution is reached.
You are spreading the issue around in different forum posts, which is a wrong thing to do.
You are trying to diagnose your problem by elimination, but it seems to me you are chasing/blaming the wrong things. I don't think your knowledge is sufficient to diagnose this, certainly the approach you are taking is scattered.

Charlie (who would most likely know more about sme server than anyone else) has asked you for more specific information, so you should provide that.
If you don't know what he specifically wants then ask in the bug report.
I would suggest the following to start with: a much more detailed description of your server, what mode it is setup in (server or server gateway etc), what router modem etc you have attached, what the network general configuration is, what ISP & type of ADSL or otherwise connection you are using, what hardware specs on your server you are using, and a complete listing of all the settings from the server manager Review configuration panel, for a start.
More specific log files or db settings may well be asked for later.

Also search your log files (server manager View log files panel) eg the  messages log to start with, for any likely error messages or similar from about the time the IP changes.

Post this to the bug report, not to this or any other forum post !

You should also ensure that your server is upgraded to the latest release, which is 7.2, use the software installer panel to do this, and read the FAQ to see if any of that info re yum updates and repositories is applicable.
http://wiki.contribs.org/SME_Server:Documentation:FAQ#Yum_Updates
Read the whole section down to and including "General", not just the first few lines.
...

Offline raem

  • *
  • 3,972
  • +4/-0
How turn off Clamav antivirus?
« Reply #9 on: July 31, 2007, 01:51:39 AM »
OursPolaire

In the bug report feedback, you should also provide the history of your server, what version was first installed, was it upgraded from sme6, what is the upgrade history, any other problems encountered, have you added ANY contribs or made ANY modifications, advise what ALL of those are.
To the best of your ability of course, without being lazy and leaving out pertinent information.
...

OursPolaire

How turn off Clamav antivirus?
« Reply #10 on: July 31, 2007, 04:32:38 PM »
Hi Ray,

You wrote full of things, lets see one by one:

1- I just try to turn off/on Clamav for a test.
This test can have an impact on bug 3214... yes... one chance on a 1000000!... but it is a chance...  I am not trying to solve all the complexity of this bug here.  I just try a test, who had a little chance, to fix the problem and maybe give me some info.  The title of this topic is "How to turn off Clamav?"...  Not "how to fix bug 3214?".  I am fully aware of it.

I must do test because the bug is maybe not a bug of SME.  It could be a material problem, a bad communication with my ISP,...  

There is no question here to change the code to fix the bug here!!!  


2- My knowledge - I am a rookie.  
If I can understand how to turn off / turn on clamav I will learn a little bit more on Linux.  This is for fun and personal challenge.

3- Charlie - http://bugs.contribs.org/show_bug.cgi?id=3214
Since July 29th, Charlie had all the useful info.  And if by chance I found something I will report it properly.  When I do a test I report it to bug 3214.  I gave him the best description about the bug.  I have been specific in my comments:  I told I was not a programmer, I need complete instructions about Linux commands for upload logs files needed.  I wrote also "Tell me what log files you need or/and ask me questions."  

Now I am waiting for him.  Probably he is working on more critical bugs.  And this is normal because it seems I am the only one to experience this bug...or notice it and affected by this bug...

So, when Charlie will be ready he will ask me what he needs... and this is OK for me.

4- upgrade to 7.2:  
Like many users I had problem to upgrade from "Software Installer".  I am working on it too.

Offline raem

  • *
  • 3,972
  • +4/-0
How turn off Clamav antivirus?
« Reply #11 on: August 01, 2007, 02:31:56 AM »
OursPolaire

I have no problem with you experimenting, testing & learning to enable & disable  services etc, that's good to see, go for it. As you say it is fun to try these things out & learn a little more & become more confident with using sme. We all do that and we are all still doing that (at the level we are at of course).


Quote
2- My knowledge - I am a rookie.


That's probably why people have answered your questions in the way they have, eg let's not complicate things for the rookie by suggesting command line alternatives when there is a server manager panel alternative.


Quote
3- Charlie - http://bugs.contribs.org/show_bug.cgi?id=3214
....Since July 29th, Charlie had all the useful info.
....Now I am waiting for him.


I disagree with that entirely.
Charlie has had very little info from you.
You need to provide all the basic details I advised you to provide in my last two posts here.
I see you have now upgraded to 7.2, and I agree that you should wait & see if the problem still exists before reporting further.
...