Virtual Users Domains Postfix Ubuntu 8.04 clamav fails after upgrade

After successfully using a mail server built with Falko's "Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 8.04 LTS)" for more than a year, and on the advice of a friend, I ran two commands on the server

I have been reading a lot of things on the internet about this problem when clamav has been upgraded but most of them are a slightly different setup to mine with different programs. Im not that experienced in Linux matters so I was worried that if I tried some of their proposed solutions I might break something else. People have been saying it is a permissions problem, others say it was a flaw in the upgrade and there is a later one that will fix it.

They speak of "volatile repositries". Im not sure what that means or whether it is a good idea.

I feel the major clue is the fact that clamd.conf is looking for:
LocalSocket /var/run/clamav/clamd.ctl
but there is no file called clamd.ctl

I seem to remember during startup, before the upgrade, it used to say something about trying to start clamav and changing something because of what was in clamd.conf.

I think I will try to go through the howto again and see if there are any clues of what needs to be done.

I did notice that in the howto it says:

Now run

netstat -tap

and you should see Postfix (master) listening on port 25 (smtp) and 10025, and amavisd-new on port 10024:

I did read that upgrading changed the bash/dash thing so I redid that from the how to.

If all else fails I will have to wipe the server and start again. I really dont want to do that because there is still at least 40,000 emails stuck in the queue that it is ever so slowly sending out and it is a very important mailout.

This option does not exist in clamav, it might have in older versions but the current one does not understand this. you could copy the example conf over this one and make the changes you need to to that one if your not sure. its located here: /usr/share/doc/clamav-base/examples/clamd.conf

All I did was comment out the line
ScanPartialMessages false
i.e. #ScanPartialMessages false
Then I tried to check the version again and recived an error about
HeuristicScanPrecedence so I commented that out as well
i.e. #HeuristicScanPrecedence false
Then for good measure I commented out the last one
#StructuredDataDetection false

and rebooted.

now no more error messages, and speed has returned.

After commenting out the lines, I was able to find version of clamav. It is:
Clamav 0.92
I realise that the latest is 0.95 but after what I have been through with upgrades, I am going to give this a miss for now.