Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

External Webmail Redirect

Discussion in 'E-mail Discussion' started by bhcomjared, Jun 18, 2008.

  1. bhcomjared

    bhcomjared Member

    Joined:
    Sep 7, 2007
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    51
    Location:
    That one place.
    cPanel Access Level:
    Root Administrator
    I run 2 servers, 1 for websites the other for email. I had a working redirect for webmail.domain.com / domain.com/webmail so that customers could easily access. I had made a dns entry that would redirect all requests to the mail server.

    As of one of the latest stable tree updates, these no longer work, I've tracked down 3 things that seem to be messing with it....

    ______________
    bind no longer support my redirect architecture (cname record & a record alike)
    ______________
    apache conf...
    ScriptAliasMatch ^/?webmail/?$ /usr/local/cpanel/cgi-sys/wredirect.cgi
    ______________
    apache conf
    RewriteCond %{HTTP_HOST} ^webmail\.
    RewriteRule ^/(.*) http://127.0.0.1:2095/$1 [P]
    ______________

    I've tried to comment out the scriptaliasmatch, and force redirect to the mail server ip, results in a time out.

    Anyone have any ideas on how to fix this?:eek:

    Thanks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,570
    Likes Received:
    438
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    You might try removing any changes you had custom setup. cPanel now handles both ways. webmail/domain.com and domain.com/webmail
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. bhcomjared

    bhcomjared Member

    Joined:
    Sep 7, 2007
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    51
    Location:
    That one place.
    cPanel Access Level:
    Root Administrator
    I might have wrote it out a little choppy, but I have 2 separate servers, one handling web pages, the other handling email.:eek:

    And yes cPanel's wemail. and domain.com/webmail both work. Problem is I want it pointing to our mail server. Simply put I want webmail.domain and domain.com/webmail to redirect to (mail server ip)x.x.x.x:2095.

    We've got a simple work around at the moment. DNS entry pointing to a unique account on our mailserver and then a php redirect forcing it to go to x.x.x.x:2095.

    I'd like to fix this up more though. So when someone types in domain2.com/webmail - webmail.domain2.com (and all our other domains) to redirect over to x.x.x.x:2095.

    Any ideas?:confused:

    Thanks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice