Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

unable to connect to UNIX socket /var/clamd

Discussion in 'General Discussion' started by botic, Aug 18, 2004.

  1. botic

    botic Active Member

    Jun 12, 2004
    Likes Received:
    Trophy Points:
    I can't receive my emails anymore.
    ALso, when doing a restart of the exim : /etc/rc.d/init.d/exim restart
    i've got the following result:

    Shutting down clamd: [FAILED]
    Shutting down exim: [ OK ]
    Shutting down antirelayd: [ OK ]
    Shutting down spamd: [ OK ]
    Starting clamd: [ OK ]
    Starting exim: [ OK ]
    Starting exim-smtps: [ OK ]
    Starting antirelayd: [ OK ]
    Starting spamd: [ OK ]

    var/clamd file is 0.

    Who can help me to fix this problem?
  2. chae

    chae Well-Known Member

    Apr 19, 2003
    Likes Received:
    Trophy Points:
    Auckland, New Zealand
  3. casey

    casey Well-Known Member

    Jan 17, 2003
    Likes Received:
    Trophy Points:


    /usr/sbin/clamd start
  4. goodmove

    goodmove Well-Known Member

    May 12, 2003
    Likes Received:
    Trophy Points:
    Will that work when using Mailscanner with Clamav?
  5. botic

    botic Active Member

    Jun 12, 2004
    Likes Received:
    Trophy Points:
    It works but having an other problem with MAILER-DAEMON

    I made an update of clamd and it's working now.

    I'm using a catchall account but all the mails I'm sending to comes back to me with the following error:

    Message from MAILER-DAEMON.
    Unable to deliver message to the following address(es).
    Unknown user

    --- Original message follows.

    Return-path: <>
    Delivery-date: Fri, 20 Aug 2004 12:12:36 +0300
    Received: from id7com by with local-bsmtp (Exim 4.34)
    id 1By5Rr-0004xE-L4
    for; Fri, 20 Aug 2004 12:12:36 +0300
    Received: from [] (port=35498
    by with esmtp (Exim 4.34)
    id 1By5Rr-0004x7-FR
    for; Fri, 20 Aug 2004 12:12:35 +0300
    Received: from (NAT-Notes [])
    by (Postfix) with ESMTP id C4B7541AF6
    for <>; Fri, 20 Aug 2004 11:13:00 +0200 (MET DST)
    From: <>
    To: <>
    MIME-Version: 1.0
    Subject: Re: test
    X-Mailer: Lotus Notes Release 5.0.11 July 24, 2002
    Message-ID: <>
    Date: Fri, 20 Aug 2004 11:12:29 +0200
    Content-Type: multipart/alternative; boundary="=_alternative 00329420C1256EF6_="
    X-Antivirus-Scanner: Clean mail though you should still use an Antivirus
    X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on
    X-Spam-Status: No, hits=0.3 required=5.0 tests=HTML_MESSAGE,NO_REAL_NAME
    autolearn=no version=2.64

    This is a multipart message in MIME format.
    --=_alternative 00329420C1256EF6_=
    Content-Type: text/plain; charset="us-ascii"
  6. casey

    casey Well-Known Member

    Jan 17, 2003
    Likes Received:
    Trophy Points:
    I don't see why not. You can also tell it where to run the socket in /etc/clamav.conf.
  7. botic

    botic Active Member

    Jun 12, 2004
    Likes Received:
    Trophy Points:
    copy of clamav.cong

    I'm giving to my users 30M of free space for their emails maybe it can help you to find the solution. It's still not working

    ## #Example config file for the Clam AV daemon
    ## Please read the clamav.conf(5) manual before editing this file.

    # Comment or remove the line below.

    # Uncomment this option to enable logging.
    # LogFile must be writable for the user running the daemon.
    # Full path is required.
    LogFile /var/log/clamd.log

    # By default the log file is locked for writing - the lock protects against
    # running clamd multiple times (if want to run another clamd, please
    # copy the configuration file, change the LogFile variable, and run
    # the daemon with --config-file option). That's why you shouldn't uncomment
    # this option.

    # Maximal size of the log file. Default is 1 Mb.
    # Value of 0 disables the limit.
    # You may use 'M' or 'm' for megabytes (1M = 1m = 1048576 bytes)
    # and 'K' or 'k' for kilobytes (1K = 1k = 1024 bytes). To specify the size
    # in bytes just don't use modifiers.
    LogFileMaxSize 2M

    # Log time with an each message.

    # Use system logger (can work together with LogFile).

    # Enable verbose logging.

    # This option allows you to save the process identifier of the listening
    # daemon (main thread).
    #PidFile /var/run/

    # Path to a directory containing .db files.
    # Default is the hardcoded directory (mostly /usr/local/share/clamav,
    # it depends on installation options).
    #DataDirectory /var/lib/clamav

    # The daemon works in local or network mode. Currently the local mode is
    # recommended for security reasons.

    # Path to the local socket. The daemon doesn't change the mode of the
    # created file (portability reasons). You may want to create it in a directory
    # which is only accessible for a user running daemon.
    LocalSocket /var/clamd

    # TCP port address.
    #TCPSocket 3310

    # Maximum length the queue of pending connections may grow to.
    # Default is 15.
    #MaxConnectionQueueLength 30

    # When activated, input stream (see STREAM command) will be saved to disk before
    # scanning - this allows scanning within archives.

    # Close the connection if this limit is exceeded.
    #StreamMaxLength 10M

    # Maximal number of a threads running at the same time.
    # Default is 5, and it should be sufficient for a typical workstation.
    # You may need to increase threads number for a server machine.
    MaxThreads 10

    # Thread (scanner - single task) will be stopped after this time (seconds).
    # Default is 180. Value of 0 disables the timeout. SECURITY HINT: Increase the
    # timeout instead of disabling it.
    #ThreadTimeout 500

    # Maximal depth the directories are scanned at.
    MaxDirectoryRecursion 15

    # Follow a directory symlinks.
    # SECURITY HINT: You should have enabled directory recursion limit to
    # avoid potential problems.

    # Follow regular file symlinks.

    # Do internal checks (eg. check the integrity of the database structures)
    # By default clamd checks itself every 3600 seconds (1 hour).
    #SelfCheck 600

    # Run as selected user (clamd must be started by root).
    # By default it doesn't drop privileges.
    #User clamav

    # Initialize the supplementary group access (for all groups in /etc/group
    # user is added in. clamd must be started by root).

    # Don't fork into background. Useful in debugging.

    ## Mail support

    # Uncomment this option if you are planning to scan mail files.

    ## Archive support

    # Comment this line to disable scanning of the archives.

    # Options below protect your system against Denial of Service attacks
    # with archive bombs.

    # Files in archives larger than this limit won't be scanned.
    # Value of 0 disables the limit.
    # WARNING: Due to the unrarlib implementation, whole files (one by one) in RAR
    # archives are decompressed to the memory. That's why never disable
    # this limit (but you may increase it of course!)
    ArchiveMaxFileSize 10M

    # Archives are scanned recursively - e.g. if Zip archive contains RAR file,
    # the RAR file will be decompressed, too (but only if recursion limit is set
    # at least to 1). With this option you may set the recursion level.
    # Value of 0 disables the limit.
    ArchiveMaxRecursion 5

    # Number of files to be scanned within archive.
    # Value of 0 disables the limit.
    ArchiveMaxFiles 1000

    # Use slower decompression algorithm which uses less memory. This option
    # affects bzip2 decompressor only.

    ## Clamuko settings
    ## WARNING: This is experimental software. It is very likely it will hang
    ## up your system !!!

    # Enable Clamuko. Dazuko (/dev/dazuko) must be configured and running.

    # Set access mask for Clamuko.

    # Set the include paths (all files in them will be scanned). You can have
    # multiple ClamukoIncludePath options, but each directory must be added
    # in a seperate option. All subdirectories are scanned, too.
    ClamukoIncludePath /home
    #ClamukoIncludePath /students

    # Set the exclude paths. All subdirectories are also excluded.
    #ClamukoExcludePath /home/guru

    # Limit the file size to be scanned (probably you don't want to scan your movie
    # files ;))
    # Value of 0 disables the limit. 1 Mb should be fine.
    ClamukoMaxFileSize 1M

    # Enable archive support. It uses the limits from clamd section.
    # (This option doesn't depend on ScanArchive, you can have archive support
    # in clamd disabled).
  8. botic

    botic Active Member

    Jun 12, 2004
    Likes Received:
    Trophy Points:
    Chmod of catchall

    What must be chmod of my catchall account? 750?
  9. cPanelNick

    cPanelNick Administrator
    Staff Member

    Mar 9, 2015
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    DataCenter Provider
    Make sure you are running clamav 0.75.1 or later and add


    to /etc/clamav.conf

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice