As a WHM admin, if you update the contact email of any cPanel Account, the system will automatically send an email notification alert to the account’s contact email.
There are cases where the admins don’t want this to happen for various reasons.
You can disable the email notifications on an account level but that would also trigger a notification. In addition, there is no global setting which would allow you to disable such notifications server wide.
Απαιτούμενος χρόνος 2 λεπτά
Thankfully there is an easy way to change any cPanel account’s contact email without sending notification alert. This can be done by editing the contact email via the command line. Here is how:
- Edit /var/cpanel/users/<username> and change the CONTACTEMAIL field
First you need to go to /var/cpanel/users/<username> in your server and locate “CONTACTEMAIL”. Next to that you’ll see an email address. Replace the old email address with the new one, save the change and exit.
- Edit /home/<username>/.cpanel/contactinfo and change the “email” line.
Then you need to go to /home/<username>/.cpanel/contactinfo and locate “email”. Next to that you’ll see an email address within two single quotation marks. Again, replace the old email address with the new one, save the change and exit.
- Exit and run the command /usr/local/cpanel/scripts/updateuserdomains
In the final step you need to exit to the command line and run the command /usr/local/cpanel/scripts/updateuserdomains. This will update all the contact details changes for every cPanel account.
Next time you login to your WHM environment, you will see in the List Accounts page that the contact email has been changed and no notification alert was sent to the account holder.
Original source: https://tumblr.tristesse.org/post/614987802527006720/updating-cpanel-contact-email-without-notification