Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member orty's Avatar
    Join Date
    Jun 2004
    Location
    Bend, Oregon
    Posts
    105
    cPanel/Enkompass Access Level

    Root Administrator

    Default webmail proxy change on a per-domain basis with 11.23

    Noticed the 11.23 upgrade, and noticed the "webmail.*" proxy that's created so webmail.domain.com is the same as domain.com/webmail/ . However, I have a few domains where I did this trick where I changed their /webmail direction using some httpd.conf tricks (that's a bit dated, as I don't include the slight tweaks you have to make with EasyApache3, but the config directives are generally the same -- I digress...).

    So while 95% of my clients will like this feature, the few I've setup custom redirects for now have webmail.domain.com going to the cPanel and domain.com/webmail going to the redirect. I'd could just get rid of the webmail.domain.com for those particular clients, as they don't know that it even works, but I'd like to have the option for both.

    I tried running this command to get rid of the proxy info for a single domain:
    Code:
    /scripts/proxydomains remove --domain=domain.com
    It returns that it works fine, but when I try to load webmail.domain.com, it still loads the cPanel web interface, not the redirect (even after an apache restart).

    How do I set it up so that webmail.domain.com and domain.com/webmail both go to a custom URL?

    -jake (orty)
    Jake Ortman: Jake-of-all-Trades Geek/Blogger

  2. #2
    cPanel Staff
    Join Date
    Mar 2007
    Posts
    113

    Default

    Quote Originally Posted by orty View Post
    I tried running this command to get rid of the proxy info for a single domain:
    Code:
    /scripts/proxydomains remove --domain=domain.com
    It returns that it works fine, but when I try to load webmail.domain.com, it still loads the cPanel web interface, not the redirect (even after an apache restart).
    The Apache changes for the proxy subdomains are completely generic. It will catch everything coming in with cpanel.<something> or webmail.<something>. What /scripts/proxydomains changes is the DNS record for the domain. It's removing cpanel/webmail/webdisk/whm from there, and that change isn't going to be apparent until your local caching DNS server refreshes the DNS zone.

    Quote Originally Posted by orty View Post
    How do I set it up so that webmail.domain.com and domain.com/webmail both go to a custom URL?
    Just add webmail.domain.com as a subdomain and add a redirect to webmail.domain.com.

  3. #3
    Member orty's Avatar
    Join Date
    Jun 2004
    Location
    Bend, Oregon
    Posts
    105
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by jdlightsey View Post
    The Apache changes for the proxy subdomains are completely generic. It will catch everything coming in with cpanel.<something> or webmail.<something>. What /scripts/proxydomains changes is the DNS record for the domain. It's removing cpanel/webmail/webdisk/whm from there, and that change isn't going to be apparent until your local caching DNS server refreshes the DNS zone.
    Ah...OK, didn't know it was strictly a DNS thing -- which is why it didnt' work yesterday but now does today.

    Thanks!
    Jake Ortman: Jake-of-all-Trades Geek/Blogger

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jan 2006
    Posts
    654

    Default

    Can you tell me if running "/scripts/proxydomains add" will cause the DNS zones to be updated and synchronized even if the same subdomains have been added previously?

  5. #5
    Member
    Join Date
    Jan 2005
    Location
    /dev/null
    Posts
    770

    Default

    Quote Originally Posted by 4u123 View Post
    Can you tell me if running "/scripts/proxydomains add" will cause the DNS zones to be updated and synchronized even if the same subdomains have been added previously?
    It does indeed, caught me out when it first appeared (a few clients have webmail subdomains pointing at their own servers)

  6. #6
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jan 2006
    Posts
    654

    Default

    Thats very useful - it means that we can make bulk changes to our zone files and then use that to send the DNS upates to the nameservers.

    Its better than using the DNS synchronisation options in WHM because that does ALL zone files on the server based on the timestamp, not just the cpanel users domains and it means we dont have to update the timestamps manually

Similar Threads & Tags
Similar threads

  1. how to change domain.com/webmail to mail.domain.com
    By abhinavkumar in forum E-mail Discussions
    Replies: 4
    Last Post: 12-08-2010, 12:49 AM
  2. Horde login error usign webmail.domain.com (proxy)
    By duranduran in forum E-mail Discussions
    Replies: 0
    Last Post: 10-02-2010, 01:17 PM
  3. Change /webmail/ for only one domain
    By justhost in forum New User Questions
    Replies: 7
    Last Post: 06-12-2008, 03:58 PM
  4. Change /webmail Redirect for One Domain
    By orty in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 06-12-2008, 03:07 PM
  5. After domain change webmail doesn't work.
    By ArbuZz in forum E-mail Discussions
    Replies: 1
    Last Post: 02-14-2008, 05:15 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube