Localdomains and remotedomains in cPanel Server.
Problem : A user that pointed their MX records to another server but email from their website or users on the same server isn’t going out of the server.
This is because Exim on the server is configured to use files called localdomains and remotedomains, which tell Exim whether a domain’s email is hosted locally or remotely.
The files controlling these actions are:
/etc/localdomains: email hosted locally
/etc/remotedomains: email hosted remotely
* The remotedomains file takes precedence, so if a domain is located in both files, the mail server should use remotedomains.
Common Errors:
*Email from the user’s site is not being delivered to their outside mail server - add the domain to remotedomains
*lowest numbers MX record points to localhost - adding the domain to localdomains will resolve the issue.
*Email bouncing stating the user does not exist - add the domain to remotedomains
How to Change the Name of RVSiteBuilder in cPanel
If you are using the x3 theme. If that’s not the case, substitute accordingly.
Edit: /usr/local/cpanel/base/frontend/x3/dynamicui/dynamicui_rvsitebuilder.conf
Change the text as follows:
itemorder=>40,version=>1.0,itemdesc=>{Your Text},description=>{Your Text}
TCP and UDP Ports for Cpanel Server Firewall
Incoming TCP ports
TCP_IN = “20,21,22,25,53,80,110,143,443,465,587,993,995,2077,2078,2082,2083,2086,2087,2095,2096,2242″
Outgoing TCP ports
TCP_OUT = “20,21,22,25,37,43,53,80,110,113,443,587,873,2087,2089,2703″
Incoming UDP ports
Outgoing UDP ports
UDP_OUT = “20,21,53,113,123,873,6277″
Enabling DNS clustering on each server
A DNS cluster is a number of nameservers that share records. To optimally configure your DNS cluster, you will need 2 spare servers, both preferably running cPanel DNS ONLY. You will also need at least 1 web server with cPanel/WHM installed.
You can download the cPanel DNS ONLY software here.
http://layer1.cpanel.net/cpanel-dnsonly-install.sea
All machines in the cluster must be running cPanel or cPanel DNS ONLY version 11 or higher. Some features may not work with older versions of cPanel.
Enabling DNS clustering on each server
First, you will need to enable DNS clustering via each server’s WHM interface.
1. Navigate to WHM’s Configure Cluster screen.
2. Click Enable Dns Clustering.
3. Click Change.
4. Click Return to Cluster Status.
Next, you will need to specify which server(s) you wish to cluster, or share DNS information with.
You do not need to link dedicated DNS servers to each other, or link dedicated web servers to each other.
You will need to sync each web server to its DNS servers.
You should not set a DNS server to sync data back to a web server, as this will put extraneous data on the web server.
Adding SPF records for a user via SSH in Cpanel servers
SPF (Sender Policy Framework): A feature that allows a recipient server to verify that an email message has really been sent from the domain specified in the From: field. Enabling SPF can prevent your server from receiving replies to spam that has forged your domain name as part of the sender’s address. SPF only works if both the sending and receiving mail servers have SPF enabled.
Login to your cpanel server as root user.
/usr/local/cpanel/bin/spf_installer USERNAME