The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to Install / Configure ClamAV ?

Discussion in 'E-mail Discussions' started by alexcheung, Jul 12, 2007.

  1. alexcheung

    alexcheung Registered

    Joined:
    May 6, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I just install a fresh Fedora Core 5 and Install cPanel. But I found that there is no ClamAV and MailScanner.

    I cannot use /script/mailscannerupdate --force to install mailscanner. I found that in my /etc folder, there is no exim_outgoing.conf, so the scripts is nothing to do.

    And I also found that cPanel 11 make the maillog to single file, not like cPanel 10. Can I reconfig to rotate the log file into daily style.

    Thx in advance. ^^
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    MailScanner is no longer supported by cPanel/WHM.

    To install ClamAV, simply log into WHM, go to the cPanel section and click "Plugins." Check the box next to "clamavconnector" and click save at the bottom of the page. This will install ClamAV.
     
  3. alexcheung

    alexcheung Registered

    Joined:
    May 6, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I installed the cPanel Pro and clamavconnector.

    I download the eicar test virus file to test the functionality, it seem work on scan home directory, but not work in exim. I can send the email to account with the eicar.zip attachment.

    If I upload the eicar.zip to home directory, it can identify by scan the home directory. But cannot detect the virus in email.
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    In WHM -> Plugins -> ClamAV Connector, ensure that "Scan Mail" is checked.
     
  5. Flyer

    Flyer Member

    Joined:
    Jun 15, 2007
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    That process installs 0.90.2, which is two versions out of date. How do I upgrade to 0.91 (the latest version)?

    Thanks.
     
  6. alexcheung

    alexcheung Registered

    Joined:
    May 6, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    It seem not work too. I also make user configuration -> Add All -> Checked Scan Mail. Also cannot scan the email.
     
  7. Grzeslaw

    Grzeslaw Well-Known Member

    Joined:
    Jul 11, 2006
    Messages:
    76
    Likes Received:
    1
    Trophy Points:
    6
    Location:
    Poland
    I have other way to install the clamav on my server:

    Code:
    useradd clamav; groupadd clamav; cd /usr/src
    wget http://freshmeat.net/redir/clamav/29355/url_tgz/clamav-0.91.tar.gz
    mv /usr/local/etc/freshclam.conf /usr/local/etc/freshclam.conf.old
        mv /usr/local/etc/clamd.conf /usr/local/etc/clamd.conf.old
    tar -xzf clamav-*
    make && make install
    sed -i 's/Example/#Example/g' /usr/local/etc/freshclam.conf
    sed -i 's/Example/#Example/g' /usr/local/etc/clamd.conf
    freshclam
    touch /var/log/clam-update.log
    chown clamav:clamav /var/log/clam-update.log
    ln -s /usr/local/sbin/clamd /usr/sbin/clamd
    
    after that, I changed, the exim.conf in the section check_message:
    Code:
    check_message:
    #  Enabling this will make the server non-rfc compliant
    #  require verify = header_sender
    require verify = sender
    deny message = TEXT - wrong MIME type ($demime_reason)
    demime = *
    condition = ${if >{$demime_errorlevel}{2}{1}{0}}
    deny message = TEXT MALWARE  ($malware_name)
    demime = *
    malware = *
    deny message = TEXT - wrong extention (.$found_extension)
    demime = bat:com:pif:prf:scr:vbs:exe
    warn message = X-Antivirus-Scanner: Clean mail though you should still use an Antivirus
      accept
    
     
  8. rachdian

    rachdian Registered

    Joined:
    Jul 2, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Unfinish processing...

    When install from whm/cpanel/plugins, the process never accomplish, stack at fetch progversion.bz2. What have i to do?

    Got file ./html/clamavconnector/index.html ok (md5 matches)
    Fetching http://httpupdate.cpanel.net/cpanel...inux-i686/html/clamavconnector/blank.html.bz2 (0)....@208.74.123.20......connected......receiving...100%......Done
    Got file ./html/clamavconnector/blank.html ok (md5 matches)
    Fetching http://httpupdate.cpanel.net/cpanelsync/addons/modules/clamavconnector-Linux-i686/version.bz2 (0)....@208.74.123.20......connected......receiving...100%......Done
    Got file ./version ok (md5 matches)
    Fetching http://httpupdate.cpanel.net/cpanelsync/addons/modules/clamavconnector-Linux-i686/progversion.bz2 (0)....@208.74.123.20......connected......receiving...100%......Done
    Got file ./progversion ok (md5 matches)
     
  9. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    For the process to not complete is abnormal, I'd recommend submitting a support request regarding this issue so our support team can diagnose and hopefully resolve the issue.
     
  10. markb14391

    markb14391 Well-Known Member

    Joined:
    Jun 9, 2008
    Messages:
    305
    Likes Received:
    2
    Trophy Points:
    18
    I don't see this option, just the option to install and keep ClamAV updated (and the uninstall button).
     
  11. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    This functionality is now found in WHM -> Plugins -> Configure ClamAV Scanner

    Given what you mention, it sounds like you're at WHM -> cPanel -> Manage Plugins instead. That is not the correct screen for configuring these settings.
     
  12. markb14391

    markb14391 Well-Known Member

    Joined:
    Jun 9, 2008
    Messages:
    305
    Likes Received:
    2
    Trophy Points:
    18
    I see the options that allow users to perform scans, but how do I turn on automatic mail scanning?

    Also, how can I verify that ClamAV and the automatic mail scanning are working?

    Thanks,

    Mark
     
  13. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Automatic mail scanning by ClamAV is turned on when the ClamAVConnector plugin is installed.
     
  14. furquan

    furquan Well-Known Member

    Joined:
    Jul 27, 2002
    Messages:
    425
    Likes Received:
    0
    Trophy Points:
    16
    How to clear detected Virus and Trojans ?

    Hello Every one :

    When i run the command : clamscan -ir / -l clamscanreport

    The scan starts and says :-

    Trojan-Small FOUND
    Phishing.Heuristics.Email.SpoofedDomain FOUND
    HTML.Phishing.Bank-1 FOUND
    PHP.Shell FOUND
    Phishing.Heuristics.Email.SpoofedDomain FOUND
    etc ..
    etc..

    Many such messages like the above, but my query is, Is the scan also clearing the found virus and trojans or do we have to do some thing else to clean these files ?

    any assistance will be appreciated.
     
  15. Grzeslaw

    Grzeslaw Well-Known Member

    Joined:
    Jul 11, 2006
    Messages:
    76
    Likes Received:
    1
    Trophy Points:
    6
    Location:
    Poland
    Just read the manual. There is an option "--remove" to clean infected files.
     
  16. furquan

    furquan Well-Known Member

    Joined:
    Jul 27, 2002
    Messages:
    425
    Likes Received:
    0
    Trophy Points:
    16
    Thank you so very much for your response.
     
  17. LAZer

    LAZer Well-Known Member

    Joined:
    Jan 18, 2010
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    at net :D
    cpanel plugin without clamav option

    hi i have a vps with cpanel , cent os installed . every thing is working just fine , but i dont see the clamav option in the whm--> plugins.
    i have manually installed rpm with yum in my server but its icon still do not show up in the cpanel .
    what should i do or which options should i check so that i can integrate clamAV in cpanel ?

    here is my server whm version :
    cPanel 11.25.0-R43286 [TRIAL] - WHM 11.25.0 - X 3.9
    CENTOS 5.4 i686 virtuozzo on server2

    and here is how i installed clamav :
    CentOSInstall < Main < TWiki

    it installed ok but still do not show in the cpanel , or in whm-->plugins

    here is the installed version of clamd :

    root@server2 [/etc/yum.repos.d]# clamd -V
    ClamAV 0.95.3/10379/Thu Feb 11 06:40:46 2010


    any suggestions ?
    thanks in advanced.
     
    #17 LAZer, Feb 11, 2010
    Last edited: Feb 11, 2010
  18. kotakomputer

    kotakomputer Member

    Joined:
    Mar 21, 2010
    Messages:
    24
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Jakarta, Indonesia
    To integrate CPanel and ClamAV then you need to:
    1. uninstall your manual clamav installation
    2. goto WHM - Cpanel - Manage Plugins: clamavconnector
    3. relogin WHM
    4. lookat WHM - Plugins: you will see new menu item 'Configure ClamAV Scanner'
     
  19. kotakomputer

    kotakomputer Member

    Joined:
    Mar 21, 2010
    Messages:
    24
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Jakarta, Indonesia
    To integrate CPanel and ClamAV you need:
    1. Uninstal your manual ClamAV installation
    2. WHM - Cpanel - Manage Plugins: clamavconnector
    3. Relogin WHM
    4. WHM - Plugins - Configure ClamAV Scanner
     
    #19 kotakomputer, May 28, 2010
    Last edited: May 28, 2010
  20. pasargad

    pasargad Member

    Joined:
    May 29, 2009
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    first i'm sorry for back again the old topic.

    i'm use the commend, but it's not working.

    show error:

    root@server [~]# clamscan -ir / -l clamscanreport
    -bash: clamscan: command not found
    root@server [~]#


    please help me.
     
Loading...

Share This Page