Articles in this section

ClamAV for Plesk Email Security cannot be installed on RedHat or AlmaLinux server: No match for argument: clamsmtp

kb: bug Plesk for Linux kb: technical

Applicable to:

  • Plesk for Linux

Symptoms

  • Plesk Obsidian running on RedHat 8 or AlmaLinux 9 operating systems

  • ClamAV installation (via the Plesk Email Security extension) fails with an error that is similar to the following:

    CONFIG_TEXT: Execution filemng has failed with exit code 1, stdout: Updating Subscription Management repositories.
    Extra Packages for Enterprise Linux 8 - Testing 566 kB/s | 23KB 00:00
    Extra Packages for Enterprise Linux 8 - Testing 2.5 MB/s | 633KB 00:00
    No match for argument: clamsmtp
    , stderr: Error: Unable to find a match: clamsmtp

  • Or the error:

    CONFIG_TEXT: Call to undefined method PleskExt\EmailSecurity\Helper::exec()

Cause

Plesk Email Security extension bug with ID EXTPLESK-3847

Resolution

Until the bug is resolved, apply the following workaround:

1. Connect to the server via SSH.

2. Backup the /usr/local/psa/admin/plib/modules/email-security/library/Component/Clamav.php file on your server by executing the following command:

# cp -a /usr/local/psa/admin/plib/modules/email-security/library/Component/Clamav.php{,.back}

3. Download the attached Clamav.php file to the server.

4. Replace the file /usr/local/psa/admin/plib/modules/email-security/library/Component/Clamav.php with the attached Clamav.php file by executing the following command.

# cp Clamav.php /usr/local/psa/admin/plib/modules/email-security/library/Component/Clamav.php

5. Log in to Plesk and install ClamAV under Extensions > Plesk Email Security.

Was this article helpful?

Comments

3 comments
Date Votes
  • step 5. - there is nowhere to "install ClamAV" in the Plesk Email Security extension. Should there be an "install" button?

     

    1
  • Looks like you have to install the pro version to get ClamAV

    1
  • 🙄 of course. 😖

    0

Please sign in to leave a comment.