PHP mails not working on Cpanel Server

On a cpanel server, PHP scripts can’t sent email. Incoming and outgoing emails for email users (mailbox) are working properly. To debug, loggged in to SSH as one of the cpanel user. su – CPANEL_USER If SSH access is not enabled, enable SSH in WHM. Once logged in, verify sendmail works. [sabtempco@buffalo ~]$ sendmail -f … Read more

Install PHPShield in Cpanel Server

phpSHIELD is an encoder that encode PHP scripts so no one can read your source code. https://www.phpshield.com/ They actually resell SourceGuardian Encoder, so you can install Sourceguardian loaders. Cpanel Servers come with sourceguardian loader, to install follow the instructions here.

Create New Hosting Account in WHM

To create new hosting account in Cpanel/WHM, login to WHM at http://yourserverip/whm Now to go Home » Account Functions » Create a New Account You can also use the search box on left top side of WHM. Search for “create”, then click on “Create a New Account” link. On “Create a New Account” page, you … Read more

Cpanel Server Block Incoming SPF Failed Mails

One of the customer email account as getting too much incoming emails from random-user@qq.com. First i tried to block the sender IP, but they are using too many IP. To stop this incoming email, i edited vi /etc/exim.conf Find acl_smtp_rcpt Add below deny message = SPF: $sender_host_address is not allowed to send mail from $sender_address_domain … Read more

Enable DKIM on Cpanel Server

DKIM (DomainKeys Identified Mail) is a way to digitally sign your out going emails. This help prevent spam. On Cpanel server, you can install for a site, run /usr/local/cpanel/bin/dkim_keys_install CPANEL_USERNAME If you want to enable DKIM on all sites on a cpanel server, run following as user root. wget https://raw.githubusercontent.com/serverok/server-setup/master/cpanel/dkim-spf-all.sh bash dkim-spf-all.sh This will also … Read more

Getting WHM Access from SSH on Cpanel Server

To get WHM access from SSH, run whmapi1 create_user_session user=root service=whostmgrd locale=en This is useful when you have SSH key access to server, but no root password. Open the URL you get in terminal in a browser, you have WHM root access with out password. For Cpanel, use whmapi1 create_user_session user=CPANEL-USERNAME service=cpaneld locale=en Check if … Read more