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 Backup Website With WGET (Static HTML)

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 Solar Winds Spam Experts Rejection Classification

The cPanel checkallsslcerts Script

/usr/local/cpanel/bin/checkallsslcerts The system runs the /usr/local/cpanel/bin/checkallsslcerts script during the nightly cPanel & WHM update (upcp) process. This script performs the following actions: Installs a cPanel-signed hostname certificate on the server, if one does not exist. Updates the SSL certificate for all cPanel & WHM services. Issues a Comodo signed SSL certificate on any server with … Read more The cPanel checkallsslcerts Script

.htaccess exceptions for AutoSSL and Let’s Encrypt

for Let’s Encrypt RewriteEngine On RewriteCond %{REQUEST_URI} !\.well-known/acme-challenge RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ https://%1/$1 [R=301,L] for cPanel AutoSSL RewriteEngine On RewriteCond %{REQUEST_URI} !\.well-known/pki-validation RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ https://%1/$1 [R=301,L]

Fix cPanel account permissions script

How to use PeachFlame script to fix cPanel account permissions: To get the fixperms script, simply wget the file from GitHub and make sure it’s executable: wget https://raw.githubusercontent.com/PeachFlame/cPanel-fixperms/master/fixperms.sh chmod +x fixperms.sh Fixperms – for all of the users If you would like fix the permissions for every user on your cPanel server, simply use the … Read more Fix cPanel account permissions script

Retry time not reached for any host after a long failure period

Exim issue most likely due to a corrupt Exim db. Symptom: Bounced emails with the message: “retry time not reached for any host after a long failure period” Solution: For cPanel: cd /var/spool/exim/db rm -f retry retry.lockfile rm -f wait-remote_smtp wait-remote_smtp.lockfile service exim restart For Linux: /usr/sbin/exim_tidydb -t 1d /var/spool/exim retry > /dev/null /usr/sbin/exim_tidydb -t … Read more Retry time not reached for any host after a long failure period

Mirror offline HTML website with WGET

This is an example how to convert a website in STATIC HTML: wget –mirror –convert-links –adjust-extension –page-requisites –no-parent http://mywebsite.ca –mirror – Makes (among other things) the download recursive. –convert-links – convert all the links (also to stuff like CSS stylesheets) to relative, so it will be suitable for offline viewing. –adjust-extension – Adds suitable extensions … Read more Mirror offline HTML website with WGET