Installing the cPanel Plugin

To install our cPanel plugin, follow these steps:

  1. Ensure you have root access to your cPanel server.

  2. Generate a smarthost (or use an existing one) in your JetEmail dashboard.

  3. Open a terminal or SSH into your server.

  4. Download the installation script and set the correct permissions:

curl -O https://cdn.jetemail.com/plugins/cpanel/install-jetemail.sh
chmod 755 install-jetemail.sh
  1. Run the installation script with your JetEmail credentials. Additional optional parameters are available:
    • -u: Your JetEmail smarthost username (required)
    • -p: Your JetEmail smarthost password (required)
    • -d: Enables Domain Lockdown for all domains
    • -s: Modifies SPF Records to include spf.jetsmtp.net for all domains
./install-jetemail.sh -u USERNAME -p PASSWORD # Basic installation
# OR
./install-jetemail.sh -u USERNAME -p PASSWORD -d # With domain lockdown
# OR
./install-jetemail.sh -u USERNAME -p PASSWORD -s # With SPF modification
# OR
./install-jetemail.sh -u USERNAME -p PASSWORD -d -s # With both options

Example:

./install-jetemail.sh -u smarthostusername -p password -d -s 
  1. The script will automatically download and install the plugin.

  2. Once completed, the plugin will be active and configured for use.

What the Plugin Does

The plugin automatically configures several email authentication and security settings:

  1. Adds spf.jetsmtp.net to the additional hosts section of Exim configuration
  2. Configures JetEmail’s inbound IP addresses in:
    • senderverifybypass list
    • trustedips list
  3. If Domain Lockdown is enabled (-d flag), adds a _jm TXT record to all domains for verification
  4. If SPF modification is enabled (-s flag), enables and configures SPF records for all domains
  5. Enables and configures DMARC records for all domains
  6. Makes additional Exim configuration changes:
    • Enables SRS (Sender Rewriting Scheme)
    • Disables remote HELO checks

Uninstalling the cPanel Plugin

To uninstall the JetEmail cPanel plugin and revert all configuration changes:

  1. Ensure you have root access to your cPanel server.

  2. Open a terminal or SSH into your server.

  3. Download the uninstallation script and set the correct permissions:

curl -O https://cdn.jetemail.com/plugins/cpanel/uninstall-jetemail.sh
chmod 755 uninstall-jetemail.sh
  1. Run the uninstallation script:
./uninstall-jetemail.sh
  1. The script will automatically remove all JetEmail configurations and restore your original email settings.

Note: The uninstall process will revert all changes made during installation, including:

  • Removing JetEmail smarthost configuration
  • Restoring original Exim settings
  • Removing any added SPF and DMARC records
  • Removing Domain Lockdown TXT records
  • Restoring original sender verification and trusted IP settings