The Right Way of Updating The cPanel Hostname

There are 2 ways to update the cPanel hostname corectly, via WHM, and via the Hostname utility. In both cases, the hostname should be a FQDN (Fully Qualified Domain Name) and need to resolve in DNS (have an A record present). For mail deliverability reasons, the PTR record of the main cPanel IP should match … Read more

Enable / Disable Terminal UI cPanel

Command line script to disable the web ui touch /var/cpanel/disable_whm_terminal_ui Command line script to enable the web ui rm -f /var/cpanel/disable_whm_terminal_ui

Verify and sync the cPanel license

Website to verify the cPanel license https://verify.cpanel.net/app/verify Script to force sync the cPanel license inside the server: /usr/local/cpanel/cpkeyclt –force

List all cPanel domains

This command will list all cPanel domain names, using WHM whmapi1 listzones command: whmapi1 listzones | grep domain: | awk {‘print $2’}

cURL error 28 in WordPress

This is a collection of resources related to this error: Samuel Aguilera article: cURL error 28 in WordPress https://www.samuelaguilera.com/post/curl-error-28-wordpress Bobcares article:

Exim Cheatsheet

How to list email count with sender information from the Exim mail queue ? Syntax: exim -bp|grep “<“|awk {‘print $4’}|cut -d”<” -f2|cut -d”>” -f1|sort -n|uniq -c|sort -nr Where: exim -bp : Is the base command to list all email in the mail queue with its details. grep “<” : To grep out the Sender address … Read more

Update WHM/cPanel Hostname in Terminal

The Linux hostname command is not enough, as it won’t change HELLO for Exim, or reset the SSL certificates. The good hostname script is: /usr/local/cpanel/bin/set_hostname The hostname need to be FQDN, in the format, for example: /usr/local/cpanel/bin/set_hostname host.exampledomain.com

Bulk set email quota using cPanel API

List email accounts with uapi and grep uapi –user=cpanelusername Email list_pops | grep email Use find and replace in order to generate the bulk command replace “@domain.com” with “quota=2048 domain=domain.com” replace ” email:” with “uapi –user=cpanelusername Email edit_pop_quota email=” The final command will look like: uapi –user=cpanelusername Email edit_pop_quota email=user quota=0 domain=example.com

Check EXIM version in WHM/cPanel

There are multiple methods to check the EXIM SMTP server version in cPanel. If the current version doesn’t match the version reported by the SMTP connection, consider restarting the EXIM service. Method 1: via API command whmapi1 installed_versions packages=1|grep exim Method 2: in WHM Go in WHM > Server Status > Service status

Backup Website With WGET (Static HTML)

Here is how to use wget to backup a website static content: wget –recursive –no-clobber –page-requisites –html-extension –convert-links –restrict-file-names=windows –domains example.org –no-parent www.example.org/subfolder/ http://example.org/ Here is the explanation of the options: –recursive: download the entire Web site. –domains website.org: don’t follow links outside website.org. –no-parent: don’t follow links outside the directory tutorials/html/. –page-requisites: get all … Read more

Categories Web

Solar Winds Spam Experts Rejection Classification

Messages that are rejected without being quarantined Some messages are rejected immediately without being quarantined. This happens at SMTP level and the rejection is permanent. For example this will happen for Incoming messages in the following scenarios: Have an invalid recipient or domain Do not use TLS (if enforced on the incoming domain) Do not … Read more