The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to change domain.com/webmail to mail.domain.com

Discussion in 'E-mail Discussions' started by abhinavkumar, Sep 16, 2010.

  1. abhinavkumar

    abhinavkumar Registered

    Joined:
    Sep 16, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Dear All,

    I'm quite new to this cPanel gang. I recently set up cPanel on a VPS. The setup & configuration went fine. But now the client has to go to domain.com/webmail to access the webmail. Instead he wants to go to mail.domain.com.

    can it be done???

    I tried making a subdomain & then forwarding but that didn't help.

    Also can I customize it to a level so it doesn't look like cPanel webmail???

    Thanks in advance.

    Abhinav K
     
  2. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Proxy subdomains

    By default, the proxy subdomains whm.domain.tld, cpanel.domain.tld and webmail.tld will work, without you needing to create a subdomain yourself. Simply make sure that 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) is checked in Main >> Server Configuration >> Tweak Settings, in the WebHost Manager.

    You will probably also want to check Automatically create cpanel, webmail, webdisk and whm proxy subdomain DNS entries for new accounts, also in Main >> Server Configuration >> Tweak Settings.

    If you do not host your own DNS on your cPanel server, you will need to make sure that the subdomain A records are created in the DNS zone for your domain on the server that hosts the zone.

    The proxy subdomains redirect cPanel/WHM/Webmail traffic over port 80, instead of the normal cPanel ports, which makes them useful for users who may be behind a firewall that does not allow access to the normal ports for cPanel/WHM/Webmail.

    For information about customizing the interface, I recommend our branding guide, which is available here:

    http://docs.cpanel.net/twiki/pub/AllDocumentation/WebHome/Branding_docs_x3.pdf
     
  3. alifazman

    alifazman Active Member

    Joined:
    Sep 27, 2010
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Malaysia
    Hmm...

    I also facing somekind of this situation :

    My client would like to access their webmail through :

    http://mail.domain.com instead http://mail.domain.com/webmail.


    Searching make me found almost no solution.I did a subdomain called mail for the domain and redirect to the webmail page, but no luck. Any idea on this?
     
  4. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    You do not need to create subdomains and redirects in order for proxy subdomains to work. In fact, this will interfere with the proxy subdomain configuration. You should remove them unless you are specifically trying to override the proxy subdomains with your own configuration.

    Make sure that the following setting is enabled in Main >> Server Configuration >> Tweak Settings: Proxy subdomains. This, along with some DNS A records, is all that is needed to make the feature work.

    Is the DNS for the domain hosted on your server? If it is, then make sure that A records for cpanel.domain.tld, whm.domain.tld and webmail.domain.tld exist in the domain's DNS zone. You can check this by clicking Main >> DNS Functions >> Edit DNS Zone. If these A records do not exist, you can add them using the following command:

    Code:
    # /scripts/proxydomains
    If the DNS for the domain is not hosted on your server, you will need to add A records as I described in the DNS zone for the domain on the server that hosts the domain's DNS zone file.
     
  5. alifazman

    alifazman Active Member

    Joined:
    Sep 27, 2010
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Malaysia
    Thanks Jared for your tips and advice.

    I did remove the redirection and create a record for "webmail".It successfully pointed to webmail login page when i type "http://webmail.domain.com"

    However, I wanna try to give them access by http://mail.domain.com, so it will pointing to cPanel webmail login. Currently when i type http://mail.domain.com it will pointing to cPanel default webpage.

    Any advice on this? Thanks in advance.
     
Loading...

Share This Page