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!

edit cPanel contact email via SSH

Discussion in 'E-mail Discussion' started by intellitech, Jan 13, 2009.

  1. intellitech

    intellitech Registered

    Joined:
    Jun 23, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    51
    Location:
    London
    Hi,
    Is there anyway the contact e-mail used by cPanel can changed via SSH? The reason being, we have a server not presently being used (decomissioned) and it keeps sending out error e-mails .. which ofcourse we want to stop totally by removing the contact e-mail that was configured on cPanel when the server was in use.

    Any help will be much appreciated.
     
  2. cpanelinfoseeker

    cpanelinfoseeker Well-Known Member

    Joined:
    Oct 25, 2002
    Messages:
    325
    Likes Received:
    3
    Trophy Points:
    168
    Location:
    NE Illinois
    cPanel Access Level:
    Root Administrator
    In ssh
    cd /var/cpanel/users
    edit the desired username
    - remove the email address from
    "CONTACTEMAIL="
    and/or the
    "CONTACTEMAIL2=" line.

    run "/scripts/updateuserdomains" after to rebuild the cache

    Ron
     
  3. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,480
    Likes Received:
    30
    Trophy Points:
    158
    cPanel Access Level:
    DataCenter Provider
    You need to edit the /home/USER/.cpanel/contactinfo file as well. They are kept in both places for fast lookups
     
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