Create DKIM in PowerMTA
To generate DKIM, run the command This will create 2 files. private.pem and public.pem Create a file and copy the
Change SMTP port in PowerMTA
To change SMTP port in PowerMTA, edit file vi /etc/pmta/config Find line starting with smtp-listener This line specify port used
Create SMTP user in PowerMTA
Once you have PowerMTA installed, you need to create SMTP user. To create an SMTP user, edit file vi /etc/pmta/config
Disable cPHulk Brute Force Protection
Cpanel Servers have a bruceforce attack detection module called cPHulk Brute Force Protection. In case your server have another bruteforce
Apache Auto Renew SSL on Password Protected site
I have a web site that is password protected using Apache basic autenticiation. I used following code in Apache config
Modify Apache Virtual Host for a site in Cpanel Server
On Cpanel server Apache configuration file get recreated every time you modify or add a new web site. In cause
MariaDB Change Open Files Limit
When using systemctl, you can set value for open_files_limit in my.cnf file. Default installation of MariaDB 10 have open_files_limit set
Configure Cpanel Server service using whmapi1
To disable monitoring of MySQL service, run whmapi1 configureservice service=mysql enabled=1 monitored=0 This wil prevent MySQL service get auto started.
Firewalld
firewall-cmd is used to manage firewall (iptables). It is used by default on latest version of CentOS, RHEL. Check firewall
Firewalld list all open ports
To list all open ports in firealld, run firewall-cmd –list-ports You may need to also use [root@oc1 ~]# firewall-cmd –list-services
Install Xfce VNC remote desktop on CentOS 7
Xfce is a lightweight linux desktop environment. You can install Xfce on a remote server or virtual machine, connect to
Firewalld list rules
To list rules use command firewall-cmd –list-all –zone=public To list all open ports firewall-cmd –list-ports Example [root@centos7 zones]# firewall-cmd –zone=public