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.

Any way to add contact info belonging to the same domain?

Discussion in 'General Discussion' started by Kent Brockman, Aug 29, 2013.

  1. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,130
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello friends.

    Today I have a question regarding the contact email for individual domains. Given that you can specify two email addresses, and cpanel won't allow to set email addresses belonging to the same domain, is there any tweak or hack to allow to do this?

    I have several cases where one contact will have a gmail/hotmail/yahoo email account but the second contact email should belong to an account in the same domain. Can I perform this in any way? editing manually some file from the console maybe?

    Thanks!
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,761
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    You could manually modify the contact email address in the following files:

    Code:
    /var/cpanel/users/$username
    /home/$username/.contactemail
    /home/$username/.cpanel/contactinfo
    
    Remember to run the following command after modifying the cPanel user file:

    Code:
    /scripts/updateuserdomains
    Note that the primary reason that you are not allowed to enter a contact email with the same domain name used on the account is because it may not function properly if the account is suspended or the account reaches it's disk space limit.

    Thank you.
     
  3. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,130
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    I know the reasons, but still there are a couple cases where they'll never reach its disk space limit nor get suspended, and this feature is highly needed because they don't use a different account in a daily basis. So, the "email all users" messages must arrive to accounts in their same domain.

    I'll give it a try. Thanks
     
Loading...

Share This Page