cPanel. Solving the Failed to find user “” from expanded string

Once on the same server as cPanel, after changing the settings in the WHM menu “Server Configuration” – “Settings”, email stopped working, I found the following error in the logs:

Continue reading “cPanel. Solving the Failed to find user “” from expanded string”

How to solve Cpanel::MailAuth: cphulk blocked login for user to access service ‘mail’

I noticed somehow that mail from Cpanel does not open through the Web Roundcube, SquirrelMail, Horde, and also you can’t connect to mail from PHP scripts.

Continue reading “How to solve Cpanel::MailAuth: cphulk blocked login for user to access service ‘mail’”

The problem with multiple SSL on the same IP

If there are several sites with SSL on the same IP address, then old ancient browsers that do not support SNI will not be able to determine which certificate to download and will most likely download the first one that is registered at the beginning of the web server configuration.

Continue reading “The problem with multiple SSL on the same IP”

Script for email notifications when detecting prohibited files

Once, a vulnerability was revealed on one of the file hosting services through which an attacker could upload files to a PHP server and execute it, the vulnerability was fixed and just in case, I wrote a script that would send an email if a PHP file was found in the specified directory:

Continue reading “Script for email notifications when detecting prohibited files”

Script to check the free space on the HDD

Usually I use Zabbix to monitor free space on the disk system, which also notifies when it is running out, but Zabbix is not used on some servers, so I wrote a small script that performs this check and sends an email notification, for example, if there is less than 12Gb of free memory:

Continue reading “Script to check the free space on the HDD”