change Webmail link to http://webmail.domain

To achieve that, you'd need to edit /usr/local/directadmin/data/skins/enhanced/header_wide.html:
Find:
Code:
<td><a onMouseOver="navwebmail.src=webmail_image.src;" onMouseOut="navwebmail.src='/|LANG_IMG_SKIN_NAV_WEBMAIL|';" href="|WEBAPPS_SSL|://|HOSTNAME|/|WEBMAIL_LINK|" target=_blank><img name="navwebmail" border="0" src="/|LANG_IMG_SKIN_NAV_WEBMAIL|" width="72" height="78" alt="|LANG_WEBMAIL|"></a></td>

And replace |HOSTNAME|/|WEBMAIL_LINK| with the address you'd like to be there.

Don't forget that there are more links to webmail, they're placed in user/show_domain.html file. Depending on the webmails setup, the links are:
Code:
<a href="|WEBAPPS_SSL|://|HOSTNAME|/squirrelmail" target="_blank">|LANG_WEBMAIL_SM|</a><br>
<a href="|WEBAPPS_SSL|://|HOSTNAME|/webmail" target="_blank">|LANG_WEBMAIL_UEBI|</a><br>
<a href="|WEBAPPS_SSL|://|HOSTNAME|/roundcube" target="_blank">|LANG_WEBMAIL_ROUNDCUBE|</a><br>
<a href="|WEBAPPS_SSL|://|HOSTNAME|/atmail" target="_blank">|LANG_WEBMAIL_ATMAIL|</a><br>

You might also be interested in http://help.directadmin.com/item.php?id=295.
 
Thank you for your quick answer.

the file i needed to edit was header_bar.html

this is what i changed
HTML:
href="|WEBAPPS_SSL|://|*if DOMAIN!=""|webmail.|DOMAIN||*else||HOSTNAME|/|WEBMAIL_LINK||*endif|"

The only piece of the puzzle is the |DEFAULT_DOMAIN| variable which i don't find it to call like this:
HTML:
href="|WEBAPPS_SSL|://|*if DOMAIN!=""|webmail.|DOMAIN||*else|webmail.|DEFAULT_DOMAIN||*endif|"


Any help with that variable ?
 
I do not think it is saved in session. You may add it as a feature request on the forums or email support@.
 
it's not that important to request a feature. there are more important to be added.

thank you for your time
 
Back
Top