Axigen logo

Axigen logo

Wednesday, July 20, 2011

Axigen webmail customization

Logo Customization


In Axigen, only webmail logo for both Ajax and Standard interface can be customized. For this Virtual hosting would be used and in new virtual host the files needs to be updated to incorporate the webmail logo

Axigen has provided a mean to create Virtual host in Webmail properties.

Log into the webadmin 
Navigate to Services-->Webmail
OR
Navigate to Clustering-->Webmail Proxy (For clustering setup of front-end and back-end nodes)
Under this option, check the section Virtual Host Template Mapping
To add a new virtual host, click on Add mapping

Enter the below values
Virtual host = webmail.test.com (in pic, you would find the same with value webmail.cdi.org.in)

Template name = test.com (in pic, you would find the same with value cdi.org.in)

Click on Quick Add
 
 

Then log into the node via SSH
Navigate to below path: /var/opt/axigen/webmail
[root@fn webmail]# ls -l
total 4
drwx--x--- 6 axigen axigen 4096 Jun 14 10:44 default

Make a copy of the existing default template folder
# cp -rp default test.com

[root@fn webmail]# ls -l
total 8
drwx--x--- 6 axigen axigen 4096 Jun 14 10:44 test.com
drwx--x--- 6 axigen axigen 4096 Jun 14 10:44 default

(Note: the new logo is placed in /tmp folder)

For AJAX interface, make the changes in logo path

#cd /var/opt/axigen/webmail/test.com/images/ajax
#cp /tmp/logo.png logo.png
cp: overwrite `logo.png'? Y

#cd /var/opt/axigen/webmail/test.com/private/ajax/Resources/images/axitheme-classic
#cp /tmp/axigen-logo.gif  axigen-logo.gif
cp: overwrite `axigen-logo.gif'? Y

Standard
#cd /var/opt/axigen/webmail/test.com/images/standard
#cp /tmp/logo.gif logo.gif
cp: overwrite `logo.gif'? Y

#cd /var/opt/axigen/webmail/test.com/private/standard/images/coolwater
#cp /tmp/header_logo.gif header_logo.gif
cp: overwrite `header_logo.gif? Y

After the above files are updated, make sure that the webmail service is restarted.



Then try to access the webmail url - webmail.test.com and you would be able to see the login screen with the updated logo

Customization for login with only username

 Apart from the logo customization, customers would also have a requirement wherein they would login to the webmail without the need to enter the @domain-name in the Username section.

This is achieved by following the below steps

[root@bn ~]# cd /var/opt/axigen/webmail/webmail.test.com

For AJAX login interface

Find the below section in index_ajax.hsp

    731                 },{
    732                     xtype: 'hidden',
    733                     autoCreate: {
    734                         tag: 'input',
    735                         autocomplete: 'on',
    736                         type: 'hidden'
    737                     },
    738                     name: 'domainname',
    739                     id: 'domainname',
    740                    value: 'test.com' (This value is added)
    741                 }

For Webmail login interface

Find the below section in login_standard.hsp

 <div class="field_row">
     31  <label for="username">Username: </label>
     32  <div class="input_border"><input type="text" name="username" id="username" style="width:<%width%>;"></div>
     33  <input type=hidden name="domainname" value='test.com'> (Enter the whole line)

After the above files are updated, make sure that the webmail service is restarted

Then try to access the webmail with only your username and password pair
NOTE: For clustering setup, the above customization is not applicable
For logo, the same needs to be incorporated on the Front-end nodes
For login, the same needs to be incorporated on the Back-end node

No comments:

Post a Comment