webmail subdomain not working when using createacct

mcongosto

Active Member
Aug 1, 2011
26
3
53
Hello

I am using createacct to create new accounts via API.

Everything seemed fine but I just realized that those domains created with createacct are not resolving automatically generated proxy subdomains like webmail.domain.com. DNS entries are created fine.

however domain.com/webmail works fine

Any idea how to fix this? where does cPanel stores this webmails aliases? i though webmail was a regular apache website with aliases, but not.

whm.domain.com and cpanel.domain.com don't work either. These work fine with domains created manually.

ftp.domain.com works fine either way, weird..

any idea?? thanks!!
 
Last edited:

mcongosto

Active Member
Aug 1, 2011
26
3
53
mental note: don't waste time elaborating questions too much, if people is going to help you they will no matter how much or little time you spend on the OP
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Are the newly created accounts on the shared IP or on a dedicated IP? The DNS entries aren't the only location that the proxy subdomains are located. In /usr/local/apache/conf/httpd.conf file, there is a section for PROXY SUBDOMAINS and whenever a new IP is used, it needs to be added to that section. This should happen automatically for account creation.

Here's a question. If you run "/scripts/rebuildhttpdconf" and then restart Apache, do the proxy subdomains work then?

Also, I prefer specifics, so I appreciate the details provided thus far. The less details included in a post, the more questions I end up having to ask before I can even help the person.
 

mcongosto

Active Member
Aug 1, 2011
26
3
53
they are on shared ip. Now I think it has to do with htaccess beacuse it works for some domains. I will checkot https.conf and let yyou know.

thank you!
 

bEgUnDaL

Member
Nov 28, 2008
9
0
51
cPanel Access Level
Root Administrator
This thread solves my problem.
was getting the wrong page when tried to open either webmail or cpanel subdomain.
after executing /scripts/rebuildhttpdconf and restarted apache cpanel and webmail subdomain works again.
Thank you @cPanelTristan