Webmail external login configuration
Posted by Gary Garber, Last modified by Valentin   on 04 July 2014 05:51 AM

Webmail external login configuration

 

External login allows you to configure your Webmail in such configuration, that your login form (username & password) could be formated into any page. For example like quick login from your main website (Ex. www.icewarp.com)

Please note, that bellow information is related to new external login for Webmail which is officially released from version 9.2 + of IceWarp server.

 

External login kit

All you need for external login configuration is since version 9.1.1+ in folder: Icewarp\html\webmail\client\_external\

 

Files location

All files from Icewarp/html/webmail/client/_external/ should be placed in your external site folder structure.

 

 

External login configuration

 

login.html

Include the code of this file to the web page you wish to  externally log in from into the WebMail interface. No modifications of this file are required.

login.js

Edit only the line beginning with:
this.sClientUrl = 'http://localhost:32000/
where http://localhost:32000/ should be replaced by URL where Webmail is running and accessible.

 

login_auto.html

ONLY for IceWarp partners and resellers. Allows users to automatically login into demo accounts (disabled by default).

 

proxy.php.safe

For security reasons, this file have to be renamed to proxy.php  .

This file is crucial for external login to work. If this file is not configured correctly, you will not be able to successfully login into WebMail externally.
This file provides redirection from an external site to a running WebMail site.


Lines you need to modify:


$host = "Icewarpdemo.com";

$path = "/webmail/server/webmail.php";
$port = 32000;
For $host, enter a short address (hostname) of your WebMail installation (e.g. 127.0.0.1, domain.com).
For  $path, enter the correct path to webmail/server/webmail.php file. If WebMail is running directly on the host address (domain.com/webmail), leave  the default: IceWarp\html\webmail\server\webmail.php .


Parameter $port is self-explanatory, enter the correct port for your web server where WebMail is running.

 

rsa.js

No modifycations to this file are required.

 

Updated 04.07.2014, by Valentin

(0 vote(s))
Helpful
Not helpful

Comments (0)