Home > Linux > Still having issues with clamd

Still having issues with clamd

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?

If this article has been helpful, please consider linking to it.

Categories: Linux Tags:

Related Posts

  1. May 12th, 2006 at 13:53 | #1

    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?

  1. No trackbacks yet.