This section describes how to customize the mail interface for each domain.
You can perform the following tasks to customize the client interface:
Create a directory for mail with the domain name under <uwc-deployed-dir>/webmail/ directory.
Copy the files from the default directory in the same hierarchy and customize them.
For example, assume that you have a domain called siroe.com. To change the icon for the domain siroe.com, add a new icon in the imx directory of siroe.com and change the reference to it in the main.js file. Table 8–1 shows the directory structure for the domain siroe.com
Directory |
Description |
---|---|
webmail/... |
// default interface |
webmail/imx/... |
// default image |
webmail/en/... |
// default language |
webmail/siroe.com/main.js |
// refers to the domain specific file |
webmail/siroe.com/imx/bottle.gif |
// refers to the customized images |
After login, the server refers the user agent to pick themail.html file that is located in the domain/lang directory. The mail.html file contains the relative references to the rest of the interface. The client requests all the files in the directory to make the interface. If these files exist in the domain/lang directory they are displayed, otherwise the default setup files from <uwc-deployed-dir>webmail/en/ are displayed.
If you have many domains and only a few distinct ”brands’ then you can use links to make the server point to the correct brand
Directory |
Description |
---|---|
html/... |
// default interface |
html/sesta.com/... |
// customized interface for brand 1 |
html/varrius.com -> sesta.com |
// default interface |
The server listens to all IP addresses and presents a customized interface before the authentication occurs. The server does this by looking at the URL and by determining if it contains a known domain and presents the per domain Login screen for the domain.
For example, for the per domain Login screen: http://webmail.sesta.com/, the server presents the page from the location: <uwc-deployed-dir>/webmail/<domain-name>/en/default.html.
In this case a user does not have to suffix @domain to the user name to login.
For more information on Customizing the Mail Component, Sun Java System Messenger Express Customization Guide.