The Tweak Settings interface in WHM has roughly four hundred entries by the last count. Most are inert on a typical server; a few materially change reliability, security, or customer experience. A new operator usually finds out about the important ones by accident — an outage caused by a default they didn’t know existed, or a customer complaint that turns out to be a default no one changed. Twenty-odd settings is the short list of what to actually review on every server you take over.
What’s happening
Tweak Settings is the user-facing name for cPanel’s central configuration store, persisted in /var/cpanel/cpanel.config. Settings live in categories — Mail, Security, System, Stats, Backup. Most defaults are conservative and work for a typical hosting workload; a few defaults are wrong for any production server but cPanel keeps them for backward compatibility. The on-take-over audit is twenty minutes of grep and a checklist.
How to verify
Read the current state of the settings you care about:
whmapi1 get_tweaksetting key=skipboxtrapper
whmapi1 get_tweaksetting key=maxemailsperhour
whmapi1 get_tweaksetting key=allowwhmparkonothers
whmapi1 get_tweaksetting key=referrersafetycheck
grep -E '(maxemailsperhour|skipboxtrapper|allowwhmparkonothers)' /var/cpanel/cpanel.config
tail -f /usr/local/cpanel/logs/error_log | grep cpanel.config
For a full dump, whmapi1 get_tweaksettings --output=jsonpretty returns every setting. Pipe it through jq and grep for the categories you want.
The fix
The twenty I check on every server takeover, with the value I usually set:
maxemailsperhour— set to 500 (default 0/unlimited). Limits outbound volume per account.maxemailsperdomain_perhour— set to 250. Per-domain cap stops one account’s spam from blocking others.skipboxtrapper— set to1(off). BoxTrapper challenge-response is dead; leaving it on confuses customers.enableselectserverquota— set to1. Allows reseller quotas to apply at create time.requiressl— set to1. Forces WHM and cPanel to redirect HTTP to HTTPS.disable_xss_checks— leave at0(on). Don’t disable the XSS protection.allowwhmparkonothers— set to0. Resellers cannot park domains on accounts they don’t own.referrersafetycheck— set to1. CSRF protection on WHM forms.unprotectedssh— set to1. Disable password-only SSH for root.emailusersbandwidthexceed— set to1. Customers learn about overages before you do.emailusersbandwidthexceed80— set to1. Early warning at 80%.autoupdate— set to RELEASE or STABLE, never CURRENT on production.compressedlogs— set to1. Gzipped access logs save disk on busy hosts.statsexpiretime— set to 365. Keep stats a year, not the default 12 months in some versions.anonymous_session— set to0(off). No anonymous WHM sessions.maxbgworkers— set to 4 on a typical 8-core box; tune up for bigger.upstart— set to1if on systemd; ensures daemons restart cleanly.cpsrvd_ssl_default_key_type— set toecdsa-secp384r1. Modern key type.mailbox_format— set tomaildirnotmbox. Mbox is a corruption magnet.emailpasswords— set to0. Never email plaintext passwords.
For multi-server fleets where Tweak Settings drift across hosts is a real problem, Stack Harbor’s cPanel and WHM management practice maintains a baseline config and audits each server against it at the start of every quarter.