What is the Recommended cPFence Settings for Email, Backup, and DNS Servers?

If you're running DNS, backup, or email servers, optimizing cPFence settings can help ensure efficient use of resources while maintaining security. Below are the recommended configurations for different types of servers.

Recommended Settings for DNS and Backup Servers

For DNS and backup servers, turn off features not needed for these roles to conserve resources. Disable real-time malware protection, proactive scanning, and the WAF module:

cpfence --disable-MRTP  
cpfence --disable-proactive  
cpfence --disable-cpf-waf
  • MRTP (Malware Real-Time Protection)
  • Proactive Scanning
  • Web Application Firewall (WAF)

Other cPFence modules remain active for basic security and performance, without overloading your servers.

Recommended Settings for Email-Only Servers

For email-only servers, keep most default security settings, but disable the WAF module for best performance:

cpfence --disable-cpf-waf

Additional Configuration for Email Servers

Depending on your needs, you can enable or disable these options in your config file:

AUTO_QUARANTINE="off"  
EMAILS_QUARANTINE="off"  
EMAIL_SPAM_PROTECTION="off"

These settings control automatic quarantine, email quarantine, and spam protection. Adjust as needed for your use case.

How to Copy cPFence Settings to All Servers via WebUI

cPFence now features a modern, browser-based WebUI that is fully mobile-friendly. You can easily copy configuration settings from a reference server and apply them to all servers in your cluster, directly from any device.

 

 

  1. Open the cPFence WebUI and select System Settings in the sidebar.
  2. Use the Switch Server dropdown to choose your reference server.
  3. Click Adjust Settings (All Servers) or (One Server).
  4. Click Load from Sidebar Server to import its settings.
  5. Click Save to All Servers & Restart to instantly apply the settings cluster-wide.

Warning: If you use a different license key on any server, you’ll need to manually edit the license key for those servers via SSH after syncing settings in the WebUI.

Copy/Restore Settings via CLI (Manual Method)

To manually back up and restore cPFence settings between servers, use:

cpfence --backup-cpf-settings

To restore (with the backup file in /var/cpf_backups/):

cpfence --restore-cpf-settings

Need Further Assistance?

If you encounter any issues or need additional help, feel free to reach out to our support team via your client portal.

  • 23 gebruikers vonden dit artikel nuttig
Was dit antwoord nuttig?

Gerelateerde artikelen

How to Whitelist Your Enhance Cluster's IPs in cPFence (Important)

Important: It is essential to whitelist your IP addresses to ensure optimal operation and...

How to Manage cPFence License?

When cPFence is initially installed, the license should be added automatically. If you encounter...

Configuring cPFence

The default configuration of cPFence is highly recommended for the majority of use cases. Upon...

Installation Guide & Quick Start

cPFence installation is a straightforward process : Requirements - Ensure your server is...

Common Issues with cPFence License Failing

Note: If you are using a Per-Website License, the most common fix for license issues is to sync...