How can I fix the error: Error [Contentfilter_Settings_Contentfilter]. Message [[QUARANTINEDIR] must be a valid directory?

Overview

The error Error [Contentfilter_Settings_Contentfilter]. Message [[QUARANTINEDIR] must be a valid directory indicates that the Amavis component was not installed or configured correctly during the initial setup. This typically occurs when the Warden installation script fails to create or validate the required quarantine directory structure.

Prerequisites

  • Root or sudo access to the server
  • SSH terminal access

Resolution Steps

  1. Open an SSH session and log in as root (or a user with sudo privileges).
  2. Execute the Warden installation script corresponding to your operating system:

AlmaLinux/CloudLinux/RHEL

/usr/local/psa/admin/bin/modules/warden/install.sh

Debian/Ubuntu

/opt/psa/admin/bin/modules/warden/install.sh
  1. Review the terminal output for any errors or warnings during execution.
  2. If the script completes successfully without errors, return to the control panel interface and restart the setup wizard. The configuration should now proceed without triggering the quarantine directory error.

Troubleshooting

  • Script fails with permission errors: Ensure you are running the command as root or prefix it with sudo. Verify that the target directories have appropriate ownership and permissions for the service accounts.
  • Quarantine path remains invalid after reinstallation: Manually verify that Amavis is properly installed, the quarantine directory exists and is writable by the Amavis process. If necessary, consult official documentation for custom quarantine path configurations or contact support if the issue persists.
  • quarantinedir
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How can I fix the error: Host '127.0.0.1' is not allowed to connect to this MariaDB server?

Overview This article provides resolution steps for the MariaDB connection error Host...

How can I fix the error: Parse error at /etc/clamav/clamd.conf Unknown option ScanImage?

Overview The clamav-daemon.service may fail to start due to unrecognized configuration...

How can I fix the error: The domain limit of this license key has been reached?

Overview The Admin and Pro editions of Danami products enforce a maximum domain limit within the...

After upgrading from Centos 7 to AlmaLinux 8 Amavis is treating mail with low scores as spam. How can I fix this?

Overview Following an upgrade from CentOS 7 to AlmaLinux 8, Amavis may incorrectly classify...