I restarted the server, and it doesn't seem as if there are any more problems relating to amavis or clam. However, the server is still quite slow, and these lines appear very frequently in /var/log/mail.log:

Code:

imapd: Failed to connect to socket /tmp/fam--
imapd: last message repeated 5 times