Disable 'Contact Email' Change E-mail Alerts

jtgroup

Active Member
Nov 21, 2017
38
3
58
UK
cPanel Access Level
Root Administrator
Hello everyone,

Sorry to bother you but I was hoping that someone might be able to help with this one.

We would like to disable the e-mail alert notifications when we change an accounts e-mail contact in WHM.

What I mean is on the 'List Accounts' page if we put in a new e-mail address in the 'Change Contact Email' field and then click on 'Change', the original e-mail address receives a notification e-mail.

Can these be stopped?

Kind regards


James
 
  • Like
Reactions: Tomas Gonzalez

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
Apr 1, 2017
5
2
53
Buenos Aires, Argentina
cPanel Access Level
DataCenter Provider
This is great, but changing the notifications will alert the user that the notifications have been disabled.
I wish to completely avoid the user from being noticed.

I found a way to pause ALL emails for the server.

1. In the Exim Advanced Editor, add this config and save changes (Look for the big blue button to add a config):
queue_smtp_domains = *

2. You may then do whatever fires the email without it being sent.

3. You may check the email queue and delete the undesired notification email.

4. Go back to Exim Advanced Editor and delete "queue_smtp_domains" and save changes again.

5. Celebrate!

Reference: Pause/Stop Outgoing Mail Delivery

Not very nice nor simple, but works well.
Anyone now a better way to avoid the contact email from being reached at all?
 
Last edited:
  • Like
Reactions: cPanelMichael
Feb 22, 2017
17
1
53
Hamilton, Bermuda
cPanel Access Level
Root Administrator
I found an eaiser way to do this. VERY Surprised WHM doesn't have a way to update this Globally. Anyways you can modify the cPanel contactinfo config file for each account from an SSH terminal. It's a bit tedious but alot less cumbersome than logging into EVERY cPanel account and clicking alot.

What I did was create a notepad document exactly like this:


nano /home/username1/.cpanel/contactinfo

nano /home/username2/.cpanel/contactinfo

nano /home/username3/.cpanel/contactinfo



Take note of the Line Break at the end (enter). This is key.
You prepare all your accounts, with usernameX updated with actual usernames of your accounts... Then you just triple click each line and paste in your SSH session (must have Nano installed). Once you have the config file open look for these lines:

"notify_contact_address_change": 1
"notify_contact_address_change_notification_disabled": 1


Change the 1 to 0 so it reads:

"notify_contact_address_change": 0
"notify_contact_address_change_notification_disabled": 0

Then save (ctrl-x) and its done, triple click the next line and repeat the change of 1 to 0.