Results 1 to 3 of 3

Thread: External Webmail Redirect

  1. #1
    Member bhcomjared's Avatar
    Join Date
    Sep 2007
    Location
    That one place.
    Posts
    8
    cPanel/WHM Access Level

    Root Administrator

    Red face External Webmail Redirect

    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?

    Thanks

  2. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    10,122
    cPanel/WHM Access Level

    Root Administrator

    Lightbulb

    You might try removing any changes you had custom setup. cPanel now handles both ways. webmail/domain.com and domain.com/webmail

  3. #3
    Member bhcomjared's Avatar
    Join Date
    Sep 2007
    Location
    That one place.
    Posts
    8
    cPanel/WHM Access Level

    Root Administrator

    Default

    Quote Originally Posted by Infopro View Post
    You might try removing any changes you had custom setup. cPanel now handles both ways. webmail/domain.com and domain.com/webmail
    I might have wrote it out a little choppy, but I have 2 separate servers, one handling web pages, the other handling email.

    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?

    Thanks

Similar Threads

  1. Webmail login code for external site
    By Ph0enix in forum E-mail Discussions
    Replies: 0
    Last Post: 08-26-2008, 06:21 AM
  2. Set /webmail to external server
    By webstyler in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 04-06-2008, 06:44 PM
  3. can you DISABLE /webmail redirect
    By wjtaylor in forum cPanel & WHM Discussions
    Replies: 3
    Last Post: 01-20-2006, 03:59 PM
  4. Cant send to external email addresses via built in webmail..
    By sihosting in forum cPanel & WHM Discussions
    Replies: 5
    Last Post: 08-25-2005, 01:20 PM
  5. Webmail Redirect
    By wantmaker@spider in forum cPanel & WHM Discussions
    Replies: 5
    Last Post: 10-30-2003, 12:19 AM