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

Kent Brockman

Well-Known Member
PartnerNOC
Jan 20, 2008
1,335
75
178
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
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!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
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.
 

Kent Brockman

Well-Known Member
PartnerNOC
Jan 20, 2008
1,335
75
178
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
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