How to update any cPanel account’s contact email without sending notification alert

Check the blog post for an easy way to change any cPanel account's contact email without sending notification alert. Easy 3 step method.

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:

  1. 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.

  2. 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.

  3. 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

CC BY-SA

How to update cPanel account contact email without sending notification alert is licensed under a Creative Commons Attribution-ShareAlike 4.0 International license. Source: https://blog.konet.gr/how-to-update-cpanel-account-contact-email-without-sending-notification/ , Creator: Konet.gr

Σχολιάστε

Creative Commons License
Except where otherwise noted, Blog.konet.gr by Konet.gr is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Χρησιμοποίησε το περιεχόμενο των άρθρων ελεύθερα εφόσον δίνεις αναφορά στην πηγή και στον δημιουργό τους.