[TUTORIAL] Enabling Avast Core Security - need syntax

Discussion in 'Mail Gateway: Installation and configuration' started by proitsupport, Jul 31, 2018.

Tags:
  1. proitsupport

    proitsupport New Member

    Joined:
    Apr 24, 2014
    Messages:
    7
    Likes Received:
    0
    From the PMG Administration Guide
    Those settings are saved to subsection admin in /etc/pmg/pmg.conf,
    using the following configuration keys:
    avast: (default = 0) Use Avast Virus Scanner (/bin/scan). You need to buy and install Avast Core Security before you can enable this feature​

    I have installed a 30-day trial of Avast Core Security by following these instructions:

    Debian/Ubuntu

    1. Add the Avast repository to the system repositories
    # echo "deb http://deb.avast.com/lin/repo debian release" \ >>
    /etc/apt/sources.list
    # apt key add /path/to/avast.gpg
    # apt-get update

    2. Install the Avast package and optionally the avast-fss and avast-proxy packages.
    # apt-get install avast
    # apt-get install avast-fss
    # apt-get install avast-proxy

    Activation

    Copy the attached license file named license.avastlic. into the "/etc/avast" directory to activate the product.

    # cp /path/to/license.avastlic /etc/avast ​

    How do I tell PMG I want to use the Avast Scanner in addition to ClamAV?

    Here is my current pmg.conf file:

    root@mail2:/etc/pmg# cat ./pmg.conf
    section: admin
    email ****@******.***

    section: mail
    dnsbl_sites b.barracudacentral.org,zen.spamhaus.org
    int_port 26
    maxsize 51485760
    tls 1
    tlsheader 1
    tlslog 1

    section: spam
    clamav_heuristic_score 5

    section: spamquar
    lifetime 14

    section: virusquar
    lifetime 14
     
  2. Jeremy Stollings

    Jeremy Stollings New Member
    Proxmox VE Subscriber

    Joined:
    Jul 31, 2018
    Messages:
    1
    Likes Received:
    0
    We have a support contract for ProxMox VE and Mail Gateway 5.0, we have the same request.
     
  3. dcsapak

    dcsapak Proxmox Staff Member
    Staff Member

    Joined:
    Feb 1, 2016
    Messages:
    2,917
    Likes Received:
    266
    you have to add 'avast: 1' to the admin section
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. dietmar

    dietmar Proxmox Staff Member
    Staff Member

    Joined:
    Apr 28, 2005
    Messages:
    16,277
    Likes Received:
    279
    Or simply:

    # pmgsh set /config/admin --avast 1
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. karnz

    karnz New Member

    Joined:
    Nov 23, 2015
    Messages:
    29
    Likes Received:
    0
    I used this command then it added "avast 1" to admin section. Is it the same as "avast: 1"?
    And how to know avast is working with PMG because I can see only ClamAV found a virus in the log.
     
  6. dietmar

    dietmar Proxmox Staff Member
    Staff Member

    Joined:
    Apr 28, 2005
    Messages:
    16,277
    Likes Received:
    279
    no.

    Send an eicar test file.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. karnz

    karnz New Member

    Joined:
    Nov 23, 2015
    Messages:
    29
    Likes Received:
    0
    OK. It works now.
    Must be "avast 1" without a colon.
    Thanks.
     
  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