The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

edit cPanel contact email via SSH

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

  1. intellitech

    intellitech Registered

    Joined:
    Jun 23, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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:
    324
    Likes Received:
    3
    Trophy Points:
    18
    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,426
    Likes Received:
    2
    Trophy Points:
    38
    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