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
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
If you can’t see the hostname in this file just add it at the top and save the file.
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
A smarthost relay is an external SMTP server that you can connect to your cPanel server. The smarthost will deal …
How To Install Imunify360 cPanel & DirectAdmin ServersImunify360 is a fantastic tool to have in your server toolkit. It's a …