cPanel / WHM Plugin

Maileroo Relay for cPanel WHM

Maileroo Relay sends a cPanel/WHM server’s outgoing email through Maileroo, and sets each domain up automatically from a single Maileroo API key.

$10.00 Per Month

Maileroo Relay for cPanel/WHM overview

Overview

Better Inbox Placement, No Manual DNS Work

It installs as a WHM plugin plus a cPanel plugin, and routes Exim’s outbound mail over SSL/TLS while local delivery stays untouched.

Who it’s for

Hosting providers, resellers and agencies running cPanel/WHM who want better inbox placement, a clean sending reputation, and no manual DNS work per domain.

Nothing changes for the account owner

Website forms, PHP mail(), WordPress and mail apps all relay automatically.

Nothing bounces during setup

Domains that aren’t set up keep sending directly.

How It Works

What It Does, in One Pass per Domain

1

Add

Domain Added to Maileroo

Adds the domain to your Maileroo account.

2

DNS

Records Written

Writes the SPF, DKIM, DMARC and click-tracking records into the domain’s cPanel DNS zone.

3

Verify

DNS Verified

Asks Maileroo to verify the DNS, and keeps re-checking until it passes.

4

Credentials

SMTP Account and Sending Key

Creates an SMTP account and an API sending key for the domain.

5

Relay

Mail Relayed

Starts relaying that domain’s mail through Maileroo once it’s verified.

Features

Features and What It Supports

Delivery Methods

SMTP relay (default): Exim smarthost to smtp.maileroo.com, messages passed on unchanged. Email API: an Exim pipe transport posts each message to Maileroo’s API over HTTPS, for servers with outbound SMTP blocked.

Encryption

SSL/TLS on port 465 by default, certificate verified. STARTTLS on 587 or 2525 optional. Exim queues mail rather than ever sending it unencrypted. API and setup calls use HTTPS with TLS 1.2 or newer.

One-Key Automatic Setup

Paste one Maileroo account API key; pick domains; setup runs in the background with live progress. Scope: main domains, main + addon (default), or everything including parked domains and subdomains.

DNS Automation

SPF merged into the existing record (never duplicated); DKIM added (split for long keys, with Maileroo’s CNAME fallback if needed); DMARC added only if missing; click-tracking CNAME. MX is never changed, so inbound mail is unaffected. Works with newer and older cPanel DNS APIs, and subdomain records go into the parent zone.

Verification

Asks Maileroo to scan DNS after every change and shows Maileroo’s own pass/fail per record. A domain only starts relaying once Maileroo verifies it. Re-checked every 10 minutes until it passes.

Custom Tracking Domain

Switches on custom hostname tracking in Maileroo and publishes its CNAME (for example click.yourdomain.com). Needs a paid Maileroo plan; skipped with a clear note otherwise.

Credentials

Creates an SMTP account (relay@domain) and an API sending key per domain. Manual entry and CSV bulk import also supported. Optional default credentials for other local senders.

Sender Matching

Matches on the envelope sender, then the From: address, so PHP mail() and WordPress mail sent as user@hostname still relays under the right domain.

Repair and Diagnostics

Re-sync rewrites wrong records and removes misnamed copies. maileroo diagnose domain shows Maileroo’s expected records beside the server’s zone and live DNS.

Automation

New cPanel accounts are set up immediately (WHM hook); new addon domains within 10 minutes (cron).

cPanel Users

A page under cPanel › Email lets account owners see each domain’s status and DNS records, run one-click setup, paste credentials, test, or stop relaying, for their own domains only. Controlled per package in Feature Manager.

WHM Interface

Route view (server → Maileroo → inboxes) with live status and encryption, domain list with per-record checks, settings, tests (SMTP sign-in with TLS details, API send, test through Exim, public SPF), activity log.

Safety

Installs switched off. Edits only its own marked blocks in Exim’s config, keeps 20 backups and rolls back automatically if cPanel rejects a change. Credential changes apply without an Exim restart. Clean uninstall.

Command Line

maileroo tool for status, enable/disable, sync, verify, diagnose, tests and import.

Screenshots

Inside WHM

Maileroo Relay for cPanel/WHM overview

Connect Your Maileroo Account

Paste the key and click Connect. Then tick the domains to set up, click Set up selected domains, and click Turn relay on.

Requirements

Before You Begin

Server

cPanel & WHM with Exim (standard cPanel setup), Jupiter theme, root SSH or WHM Terminal access.

PHP

A PHP CLI 7.4 or newer with json, curl (or openssl) and mbstring. EasyApache PHP works; the installer finds it.

Maileroo account

An account API key (roo_…) with access to account, domains, DNS records, SMTP accounts and sending keys. Add the server’s IP if the key has an IP allowlist.

Firewall

Outbound TCP 465 open (CSF: add it to TCP_OUT). API mode needs only 443.

DNS

Domains using this server’s DNS are set up fully automatically. Domains with DNS elsewhere get the exact records to add at their DNS provider.

Maileroo plan

Plan limits apply to how many domains you can add. Custom tracking domains need a paid plan.

Installation

Install in About Five Minutes

Installation takes about five minutes as root. The relay installs switched off, so mail keeps flowing as before until you turn it on.

1

Upload and install: copy maileroo-cpanel.zip to /root/ (for example scp maileroo-cpanel.zip root@SERVER-IP:/root/, or WinSCP/FileZilla over SFTP), then run the commands shown. If unzip is missing: dnf install -y unzip. The installer installs the program to /usr/local/maileroo and the maileroo command, registers the WHM plugin (Plugins › Maileroo Relay) and the cPanel plugin (Email › Maileroo Relay), adds the 10-minute cron job and the new-account hook, and checks that smtp.maileroo.com:465 is reachable and warns if the firewall blocks it

2

Open port 465 (if the installer warned): add 465 to TCP_OUT in /etc/csf/csf.conf if missing, then run csf -r

3

Create a Maileroo account API key: in the Maileroo dashboard, create an API key (roo_…) with access to account, domains, DNS records, SMTP accounts and sending keys. If you restrict it by IP, add this server’s IP

4

Connect and set up domains: open WHM › Plugins › Maileroo Relay. Paste the key and click Connect. Tick the domains to set up and click Set up selected domains (progress shows live; you can leave the page). Then click Turn relay on. Each domain shows Live once Maileroo verifies it, usually within minutes. Domains with external DNS list the records to add at their DNS provider

5

Check it works: on the Tests tab, run SMTP sign-in; it should pass and show Encrypted: TLSv1.3. Run Test message through Exim to an outside address such as Gmail. On the Activity tab, the delivery line shows R=maileroo_smarthost, :465 and X=TLS1.3

				
					# Upload and install
wget https://plugins.mrnerds.com.au/maileroo-cpanel.zip
cd /root
unzip -o maileroo-cpanel.zip
cd maileroo-cpanel
bash install.sh

# If unzip is missing
dnf install -y unzip

# Open port 465 (if the installer warned)
grep ^TCP_OUT /etc/csf/csf.conf   # add 465 if missing
csf -r

# Check it works from the command line
maileroo status
maileroo diagnose yourdomain.com
exim -bt -f you@yourdomain.com someone@gmail.com   # shows router = maileroo_smarthost
				
			

Maintenance

Upgrading and Uninstalling

Upgrading

Upload the new zip and run the installer again. Settings and credentials are kept, and the installer re-applies the Exim configuration and retries queued mail.

				
					cd /root && unzip -o maileroo-cpanel.zip && cd maileroo-cpanel && bash install.sh
				
			

Uninstalling

Uninstalling turns the relay off and removes the plugins, cron job and hook. Domains in Maileroo and DNS records in your zones are left in place.

				
					cd /root/maileroo-cpanel
bash uninstall.sh            # keeps /etc/maileroo credentials
bash uninstall.sh --purge    # also deletes credentials and settings
				
			

Troubleshooting

Symptoms, Causes and Fixes

SMTP sign-in test can’t connect

Outbound 465 blocked. Add 465 to CSF TCP_OUT and run csf -r.

535 Authentication failed

Wrong SMTP credentials. Run Fix DNS and verify again on the domain to recreate them, or paste the right ones.

Domain stays “Waiting for DNS”

DNS hasn’t propagated, or the domain’s DNS is hosted elsewhere. Run maileroo diagnose domain and add any missing records at the DNS provider.

A record shows “Failed”

Run maileroo sync domain; the plugin rewrites and re-checks it. Send the diagnose output if it persists.

Tracking row says it needs a paid plan

Upgrade the Maileroo plan, or turn off Set up a custom tracking domain in Settings.

Mail stuck in the queue

Check WHM › Mail Queue Manager or exim -Mvl <id>; retry with Tests › Retry queued mail now.

Command Line

Commands

maileroo status

Version, mode, domains, Exim state, delivery and encryption counts.

maileroo enable / disable

Turn the relay on or off and rebuild Exim.

maileroo connect roo_…

Save and check the account API key.

maileroo sync --all / sync domain

Set up or repair domains.

maileroo verify

Re-check domains waiting for verification.

maileroo diagnose domain

Maileroo’s expected records beside the server’s zone and live DNS.

maileroo test-smtp domain

SMTP sign-in test with TLS details.

maileroo test-exim from to

Send a test message through Exim.

maileroo import file.csv

Import domain,smtp_username,smtp_password,api_key.

maileroo apply

Re-apply the Exim configuration.

Order Maileroo Relay for cPanel WHM

$10.00 per month. Questions about the plugin? Contact our team.