How can I quarantine unchecked mail that cannot be scanned by the anti-virus scanner for even better security?

Overview

Warden provides the capability to quarantine email messages that cannot be scanned by the anti-virus engine. Unchecked mail typically occurs when the anti-virus daemon is unavailable or when a message contains password-protected archives, which are frequently used to bypass security scans. Enabling quarantine ensures these messages are isolated rather than delivered with an "UNCHECKED" tag.

Prerequisites

  • Administrative access to the Warden web interface
  • Root or sudo privileges on the server for configuration file modifications

Enable Quarantine for Unchecked Mail

To configure Warden to quarantine unchecked messages instead of tagging and delivering them, follow these steps:

  1. Navigate to Warden > Settings > Content Filter > Content Filter Settings. Ensure that the Final unchecked destiny option is set to reject.

Final unchecked destiny

  1. Navigate to Warden > Settings > Content Filter > Policy Settings > Unchecked. Set the Receive unchecked emails option to No.

Receive unchecked emails

Once configured, messages that fail anti-virus scanning will be automatically quarantined rather than delivered to user mailboxes with an "UNCHECKED" tag.

Disable Quarantine for Unchecked Mail

The default server-wide policy setting for Receive unchecked emails is set to Yes. By default, unchecked messages are tagged and delivered to the recipient's mailbox. A copy of each message is retained in quarantine for investigation and automatically purged after 30 days.

To disable quarantine storage for unchecked mail entirely, modify the Amavis configuration file:

  1. Edit the appropriate configuration file based on your operating system:
    • AlmaLinux/CloudLinux/RHEL: /etc/amavisd/warden.conf
    • Debian/Ubuntu: /etc/amavis/conf.d/99-warden
  2. Locate the $unchecked_quarantine_method directive.
  3. Update the configuration by replacing the existing value:
    $unchecked_quarantine_method = "local:unchecked-%m";
    with:
    $unchecked_quarantine_method = undef;
  4. Restart the Amavis service to apply changes:
    // AlmaLinux/CloudLinux/RHEL
    systemctl restart amavisd
    
    // Debian/Ubuntu
    systemctl restart amavis

After restarting the service, unchecked mail will no longer be stored in the quarantine directory.

Troubleshooting & Common Issues

  • Configuration Not Applying: Verify that the Amavis service restarted successfully and check for syntax errors in the configuration file before reloading the daemon.
  • Messages Still Delivered as Unchecked: Confirm that both UI settings (Final unchecked destiny and Receive unchecked emails) are correctly configured prior to modifying backend files.
  • Quarantine Retention Policy: When quarantine is enabled, unchecked messages are automatically deleted after 30 days. Adjust retention policies in the Warden interface if longer archival periods are required.
  • UNCHECKED, quarantine
  • 1 användare blev hjälpta av detta svar
Hjälpte svaret dig?

Relaterade artiklar

How can I install or upgrade the extension?

We provide free installation and configuration for all our paid licenses. Open a support ticket...

How can I add stronger Postfix restrictions so that the bulk of spam is rejected at the SMTPD level before it gets processed by Amavis?

Overview Warden enables administrators to enforce stricter Postfix SMTPD restrictions. These...

How can I change the interface language of the extension?

Overview This article provides instructions on how to change the interface language within the...

How can I configure greylisting with Warden Anti-spam and Virus protection?

Overview Greylisting is an email filtering mechanism designed to mitigate spam by temporarily...