Still having issues with clamd

By | 2006/05/12

I’ve done a little continued testing with amavis + clamav and it looks like I’m having a slightly different error now.

It seems that after a reboot the /var/run/clamav/clamd.ctl file is gone.  For whatever reason it is unable to recreate itself and it times out with “no such file”.  If I ‘touch clamd.ctl’ manually it works ok.  Weird?

Also, after sending two consecutive emails it looks like attempt one goes thru clamav, passes and sends the message.  The next one give an error about ‘connection refused’ on clamd.ctl, retries, re-starts and then works.  I don’t remember seeing this on my previous mail server build.  Anyone have any suggestions?

One thought on “Still having issues with clamd

  1. Gabriel Gunderson

    Is it a permissions thing? Try running clam as the user “amavis” and make sure the file can be touched by that user.

    Add this to “/etc/clamd.conf”
    User amavis

    And make sure “/etc/amavisd.conf” has:
    $daemon_user = “amavis”;
    $daemon_group = “amavis”;

    Then try something like:
    “chown amavis.root /var/run/clamav/clamd.ctl”
    “chmod 770 /var/run/clamav/clamd.ctl”

    Then again, who knows?

Comments are closed.