System Emails Frozen In Mail Queue – cPanel
cPanel sends a range of system emails to the accounts you specify inside WHM. These emails can provide important clues if you are facing any issues with your cPanel server. If you do not add email addresses inside WHM then mail for the root user will be frozen in the mail queue.
Sometimes even if you set all three email alerts it’s possible system mail for the root user might still not be delivered and will become frozen in the mail queue. This is usually down to the hostname of the server missing from the /etc/localdomains file and this happens mostly when you have moved cPanel servers. Before we check this file ensure you have set the correct email address in WHM.
Set Email Accounts In WHM
Log in to the root WHM account and from the menu options click Edit System Mail Preferences
Set all these of these options, cPanel, Nobody, Root to a local account on the server. Never set these to an email provider like Gmail or Outlook because these rate limit the mail coming from servers.
In an SSH console you can check these are set correctly by issuing the below command as the root user
cat /etc/localaliases
Check For Forwarders
cPanel sends mail to the administrator forwarding the emails to the email addresses you specify in WHM. Check that these are configured correctly by checking the email you have specified for root, cPanel and Nobody is listed in the files below.
cat /var/cpanel/userhomes/cpanel/.forward
cat /root/.forward
Check The Local Domains File
The last file to check is the /etc/localdomains file has your server’s hostname listed. If your server’s hostname is missing from this file this will also cause root email to become stuck and frozen in the mail queue
cat /etc/localdomains
If you can’t see the hostname in this file just add it at the top and save the file.
nano /etc/localdomains
After checking these files any mail that was frozen in the mail queue will be processed the next time.
How was this article? – System Emails Frozen In Mail Queue – cPanel
You might also like
More from cPanel
How To Install A Cloudflare Origin SSL Certificate In cPanel
Free SSL Certificates from places like cPanel or Let's Encrypt are great. When Let's Encrypt first introduces free SSL Certificates …
Create a SWAP partition on CentOS, RHEL and AlmaLinux without a reboot
SWAP is a memory type that Linux NVMe VPS Servers use to process requests. Memory will be held in SWAP …
Help fixing Error: last request failed: [AUTH] Authentication failed.
The Error: last request failed: [AUTH] Authentication failed error can be caused by a range of things. It could be …