Proxy domains not being created and few more issues

DeepXP

Well-Known Member
Feb 20, 2005
67
0
156
Internet
cPanel Access Level
Root Administrator
Hi,

We are using cPanel's API to create the hosting account but the proxy domains (webmail,cpanel, whm) are being added automatically. But this works fine perfectly when we create the account manually from the WHM.

Following settings in WHM are already checked:

Add proxy VirtualHost to httpd.conf to automatically redirect unconfigured cpanel, webmail, webdisk and whm subdomains to the correct port (requires mod_rewrite and mod_proxy)

Automatically create cpanel, webmail, webdisk and whm proxy subdomain DNS entries for new accounts. When this is initially enabled it will add appropriate proxy subdomain DNS entries to all existing accounts. (Use /scripts/proxydomains to reconfigure the DNS entries manually)

Allow users to create cpanel, webmail, webdisk and whm subdomains that override automatically generated proxy subdomains
---------------------------------------------------------------------

We are facing one more really strange issue with the accounts & email created using API.

While creating the hosting account using API, we are added couple of email account using cPanel API too (API version 2)

This process works perfectly fine.

Now, we have another script which us to modify the account from our admin panel, so when we modify the domain from say, example.com to example1.com, the emails created using example.com domain remains as they are and the new emails with example1.com gets created automatically.

Where, in this process, we are not touching the code where it plays with email accounts.

I am not sure if anyone has ever faced this issue, I am not sure whether it's happening due to some bug or due to incorrect implementation of the code from our side.

---------------------------------------------------------------------

And finally, the last issue.. we are not able to get the API access for any reseller accounts. But it works only when we assign all root privileges to that account. (Yes, that reseller has rights to create accounts and all etc..)

Any kind of help in these issues is highly appreciated.

Regards,
Deep
 

MattDees

Well-Known Member
Apr 29, 2005
416
1
243
Houston, TX
cPanel Access Level
Root Administrator
Before I address this any further I want to make sure I understand your issue correctly:

  1. Create n account
  2. Add email accounts
  3. run xml-api/modifyacct and change the main domain
  4. email accounts will now be duplicated
 

CraigM.

Member
Apr 29, 2010
6
0
51
Hello,

I was able to reproduce this exact behavior on a test server. What we need for you to do is open a ticket regarding this so that we can track the issue.

Once you have done so, please PM either myself or Matt Dees the ticket number so that we can follow up on it.

Thank you.