This article describes how to access webmail clients directly. Normally when users log in to webmail, they must choose a client application to use (Horde, Roundcube, or SquirrelMail.) However, you can set up redirects that enable users to log in to webmail and view an application immediately without having to choose a client.
ACCESSING WEBMAIL CLIENTS DIRECTLY
Instead of forcing users to choose a client application every time they log in to webmail, you can configure your site so users log in to webmail and automatically see the webmail interface (Horde, Roundcube, or SquirrelMail) of your choice.
For example, you can set up your site's webmail URL to be http://www.example.com/mail. When your users go to this URL, they are redirected to the webmail login page. After they log in, they see the webmail client you specified in the redirect.
To set up direct access to a webmail client application after users log in, follow these steps:
- Log in to cPanel.
- In the Domains section of the cPanel home screen, click Redirects.
- Under Add Redirect, confirm that the Type list box is set to Permanent (301).
- In the domain list box, select the domain or domains that you want to redirect.
- In the text box after the forward slash (/), type the folder or file name that you want to use for the redirect. For example, if you want to use example.com/mail as your webmail URL, type mail.
The webmail folder is already used for the general purpose webmail URL, so you cannot use it in your own redirects.
- In the redirects to text box, type the appropriate URL for the client application that you want to start automatically:
- Horde: To automatically start the Horde webmail client for users, type https://SERVERNAME:2096/horde/imp/. Replace SERVERNAME with your account's server name (for example, a2s72.a2hosting.com or sr10.supercp.com).
- Roundcube: To automatically start the Roundcube webmail client for users, type https://SERVERNAME:2096/3rdparty/roundcube/. Replace SERVERNAMEwith your account's server name (for example, a2s72.a2hosting.com or sr10.supercp.com).
- SquirrelMail: To automatically start the SquirrelMail webmail client for users, type https://SERVERNAME:2096/3rdparty/squirrelmail/. Replace SERVERNAME with your account's server name (for example, a2s72.a2hosting.com or sr10.supercp.com).
Please note that SquirrelMail is not supported on the most current version of cPanel v78, and it is highly advised that you switch to Horde or Roundcube. Both Horde and Roundcube are still supported on cPanel v78.
Make sure you include the trailing slash (/) at the end of the URL, or the redirect will not work correctly.
- Click Add.
- Use your web browser to go to the webmail URL that you specified. For example, if you specified example.com/mail, you should see the webmail login page when you visit that URL.
After you log in to webmail, the client application you specified in step 7 starts automatically.