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.

/webmail directly to webmail

Discussion in 'E-mail Discussions' started by Miss Jacky, May 1, 2004.

  1. Miss Jacky

    Miss Jacky Well-Known Member

    Joined:
    Mar 4, 2004
    Messages:
    91
    Likes Received:
    0
    Trophy Points:
    6
    Hi all,

    I only use squirrelmail, and came up myself with 2 ways of making the /webmail link directly to squirrelmail instead of the mailmanagement interface. But these changes are likely to be overridden with a cpanel update...

    Wouldn't it be nice if one could let /webmail automatically redirected to the webmail if there was only 1 webmail program enabled?

    Doesy anyone else found sollutions for this? This also applies to reading webmail via cpanel, when you type in the pass and login, you're also redirected to the (unbranded!) cpanel mail management theme, where you choose the webmailprogram.

    Any response on this greatly appreciated.
     
  2. ryno267

    ryno267 Well-Known Member

    Joined:
    Mar 3, 2004
    Messages:
    212
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Chandler, AZ
    cPanel Access Level:
    Root Administrator
    Find this in your httpd.conf file (Located here: /usr/local/apache/conf/)
    Code:
    ScriptAlias /webmail /usr/local/cpanel/base/wredirect.cgi
    ScriptAliasMatch ^/webmail/(.*) /usr/local/cpanel/base/wredirect.cgi
    ScriptAlias /mail /usr/local/cpanel/base/wredirect.cgi
    ScriptAliasMatch ^/mail/(.*) /usr/local/cpanel/base/wredirect.cgi
    
    Comment all that out with pound signs before the lines (#) and then add these lines underneath that stuff...

    Code:
    ##  NEW Squirrelmail Links
    Alias /webmail /usr/local/cpanel/base/3rdparty/squirrelmail/
    Alias /mail /usr/local/cpanel/base/3rdparty/squirrelmail/
    
    ## NEW Squirrelmail admin panel (old cpanel redirect page)
    ScriptAlias /epanel /usr/local/cpanel/base/wredirect.cgi
    ScriptAliasMatch ^/epanel/(.*) /usr/local/cpanel/base/wredirect.cgi
    
    Then write out (ctrl^O) and then you'll have to restart apache to pull in the new changes. Type this:
    /etc/rc.d/init.d/httpd restart


    Now log into your WHM and uncheck squirrelmail, horde, neomail, in "edit setup". This will turn it off so that once they're in there they can't go back to the webmail and get screwed up.
    So the code in httpd.confbasically changes your old /webmail link to /epanel (you can change the epanel to whatever you want). So it makes the /epanel link goto the cpanel redirect page that will just have the password change thing, boxtrapper, autoresponder, and forwarder.
    And your domain/webmail and the /mail (if you added both of them) will goto the squirrelmail directory instead of the cpanel redirect page.

    Now.. in order for your clients to have access to change their email and stuff you'll have to find a way to give them access to the /epanel - the cpanel redirect page.

    What I did, was reinstall squirrelmail into a new directory so that upcp doesnt overwrite it, and I modded squirrelmail to have an 'administrative' link to the /epanel so they could use all that. But thats up to you...

    /rant

    rYno
     
  3. Miss Jacky

    Miss Jacky Well-Known Member

    Joined:
    Mar 4, 2004
    Messages:
    91
    Likes Received:
    0
    Trophy Points:
    6
    Tnx for your ideas rYno, appreciate it. Will be doing them httpd.conf changes.

    greetz
     
  4. ilir038

    ilir038 Member

    Joined:
    Feb 26, 2005
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Would this still work with:

    WHM 10.0.0 cPanel 10.0.0-R146
    RedHat Enterprise 3 i686 - WHM X v3.1.0


    And if so, would it be overwritten when Cpanel is updated?


    Thanks,


    I.
     
  5. ilir038

    ilir038 Member

    Joined:
    Feb 26, 2005
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    I tried this on my box but I got an error as per the domains not having the SquirrelMail file path's in their allowed paths list. Did anyone fix this in the new WHM?


    Thanks,

    I.
     
  6. theunf

    theunf Registered

    Joined:
    Apr 25, 2005
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Mail Management Login and Menu user personalization...

    Hi,

    Any1 have any tip about personalizing both login and menu pages of Mail
    Management/Webmail ?

    I found at this site the login page, but couldnt find if there´s any hidden option...
    such as .. open only /horde/ after login.

    I´m a CPanel user, not an administrator.

    I read your instructions, but i´m looking for a solution at the client side or with minimum
    interaction of my ISP administrator.
     
  7. mattbaros

    mattbaros Registered

    Joined:
    Jun 2, 2005
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Permissions for this alias

    I know this is an old thread, but I tried to do what was suggested here and I end up with the following error when going to http://mydomain/webmail

    >>>
    Forbidden
    You don't have permission to access /webmail on this server.
    >>>

    I am not running phpsuexec,

    I have looked and looked for something that may be preventing this from running.

    Anyone have any ideas what could cause this? or how to fix it?

    Thanks,
    mb
     
Loading...

Share This Page