webmail.domain not working

alcest

Member
Aug 10, 2009
15
0
51
Hi

webmail.domainA.com
webmail.domainB.com
webmail.domainC.com
webmail.domainD.com

were working since all domains were under one shared IP.
Now:
Shared old IP - 888.888.888.888
webmail.domainA.com
- Shared old IP - ovh.hostname.com
webmail.domainB.com
- Shared old IP - ovh.hostname.com
- here is ok, and i can get redirected to https://hostname.com:2096

But:
webmail.domainC.com - IP: 111.222.111.222 (example)
webmail.domainD.com - IP: 555.666.555.666 (example)
Not working:
Page Not found.
When I try webmail.domainD.com/webmail or :2096 - webmail works.
Tried to do sth with Tweak>>Proxy

And one more thing. Why webmail.domainB.com brings me to https://hostname.com:2096 and not to : domainB.com:2096

http.conf
Code:
<VirtualHost 111.222.111.222:80 555.666.555.666:80 888.888.888.888:80 >
  ServerName ovh.hostname.com

  ServerAlias cpanel.* whm.* webmail.* webdisk.* cpcalendars.* cpcontacts.*
...
  RewriteCond %{HTTP_HOST} !^ovh.hostname.com$
  RewriteCond %{HTTP_HOST} ^webmail.
  RewriteRule ^/(.*) http://127.0.0.1:2095/$1 [P]
/>


<VirtualHost 111.222.111.222:443 555.666.555.666:443 888.888.888.888:433 >
  ServerName ovh.hostname.com

  ServerAlias cpanel.* whm.* webmail.* webdisk.* cpcalendars.* cpcontacts.*
...
  RewriteCond %{HTTP_HOST} !^ovh.hostname.com$
  RewriteCond %{HTTP_HOST} ^webmail.
  RewriteRule ^/(.*) http://127.0.0.1:2096/$1 [P]
/>
And WHY only Old-Shared_IP domains working ok while domains new separate IP's doesn't?

My WHM version: WHM 58.0 (build 36)
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello,

Is this server setup under a NAT environment? If so, could you review the correct IP addresses are specified in the /var/cpanel/cpnat file? Also, was the shared IP changed completely, or were accounts simply updated with new IP addresses and the previous shared IP address remains in-place?

Thank you.
 

alcest

Member
Aug 10, 2009
15
0
51
Maybe there was sth unclear in my message.

Accounts with shared IP - works fine.
Accounts with new IPs - Works fine: domain, subdomains, and domain/webmail or domain/cpanel etc.
Only problem with new domains was with system subdomains: webmail.domain and etc.
DNS were fine, SOA, PTR, TXT and etc were replace with new IP adresses.
Pinging domain gave proper results with new IP adressation.

But what is the most strange, is the fact that after about 3-4 hours everything started to work. But why?
This is very strange after all my test, switching Proxy in tweaks and other solutions found it started to work "just like that"...

Best regards
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
But what is the most strange, is the fact that after about 3-4 hours everything started to work. But why?
I've been unable to reproduce this issue on a test system. Is it possible that it related to browser/DNS cache on the workstation, or was it reproducible from multiple users/systems?

Thank you.
 

alcest

Member
Aug 10, 2009
15
0
51
Yes, I've tested on many systems. From inside my network, and from secondary (different ISP), and from mobile devices. From IE, Edge, Firefox up to Chorme. I've cleared cache on desktop, than on DNS Server. Nothing help... I would understand if the ping for domain could be ... mixed. When once reply was from FirstIP and then from SecondIP. But when every reply was from new one I couldn't figure who this happend. This wasn't proxy system failure, bacause the Shared (old) IP services were fine. Only new ones.
Maybe some logs could be helpfull, but this is rather for private message, and I should made some cuts-out on them. If so - please point the one You would need.
I hope my english is fine enough to make my thoughs understandable :)

Best regards
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello,

Feel free to open a support ticket so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome.

Thank you.