Xavior82

Active Member
PartnerNOC
Oct 5, 2006
30
0
156
Montreal
There doesn't seem to be a WHM tool to mass-edit cpanel accounts' contact email, so I was wondering if there was a database that WHM used to store these, so that I can insert the changes directly into the database. I have roughly 1200 accounts to change and would rather not edit them manually one by one via the modify account page.

Thanks in advance!
 

freelancer4u

Member
Oct 26, 2007
11
0
51
India
Cpanel stores contact email address for each account name in /home/<username>/.contactemail

Just edit the file, and change the email address there. If you wish to change the contact email address for all your accounts, you can try executing:

[email protected][~]$ for i in `cut -f2 -d' ' /etc/trueuserdomains|sort`
> do
> echo '[email protected]' > /home/${i}/.contactemail 2> /dev/null
> chown ${i}.${i} /home/${i}/.contactemail
> done
:cool: