Plesk

Unable to install Plesk Email Security extension: The value of variable $myhostname should have been a fully qualified domain name

Symptoms

Cause

Amavis (the component of Plesk Email Security) requires a hostname configured as FQDN. 

Resolution

  1. Log into Plesk.
  2. Go to Tools & Settings > Server Settings.
  3. In the Full hostname * field specify the FQDN hostname for example as shown below:
  4. Scroll down and press the OK button to apply the changes.
  5. Reinstall the Plesk Email Security extension.

 

Solution using the SSH access

  1. Log into the server via SSH.
  2. Execute the command below to set FQDN hostname:

    # hostnamectl set-hostname example.com

    Note: replace the example.com with the required FQDN hostname.

  3. Run the commands below one by one to reinstall the Plesk Email Security extension:

    # plesk bin extension -u email-security

    # plesk bin extension -i email-security

Exit mobile version