Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SOLVED Mass change contact email

Discussion in 'E-mail Discussion' started by Webrockhost, Oct 24, 2018.

  1. Webrockhost

    Webrockhost Registered

    Joined:
    Jun 14, 2018
    Messages:
    3
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    netherlands
    cPanel Access Level:
    Root Administrator
    Hello, we wanna change 300+ contact email adresses in bulk. I tried the following method which I found on a another post. It changed the contact mail in /home/$/.contactmail but it doesn't change the contact email in WHM > account list. Any idea how we can fix this?

    We running Cpanel v74.0.9

    Code:
    root@server[~]$ for i in `cut -f2 -d' ' /etc/trueuserdomains|sort`
    > do
    > echo 'myemail@hotmail.com' > /home/${i}/.contactemail 2> /dev/null
    > chown ${i}.${i} /home/${i}/.contactemail
    > done
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,815
    Likes Received:
    444
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Webrockhost

    Webrockhost Registered

    Joined:
    Jun 14, 2018
    Messages:
    3
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    netherlands
    cPanel Access Level:
    Root Administrator
    cPanelLauren likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice