Changing Default Webmail Link

Orbixx

Verified User
Joined
May 2, 2008
Messages
44
Hi there,

I was attempting to change the link for the webmail button in header_bar.html, but noticed DA seems to use some sort of variables like |WEBMAIL_LINK|

My question is, where can I view and alter these variables?
 

DaNgErOuS

Verified User
Joined
Sep 19, 2010
Messages
47
change squremail to roundcube

hi
i want change default webmail address from squremail to rondcube
when i logged to DA and click on webmail on top of the page then go to /roundcube
how i can do it ?
 

nobaloney

NoBaloney Internet Svcs - In Memoriam †
Joined
Jun 16, 2003
Messages
26,119
Location
California
Did you try searching this site? Try this, in google:
Code:
change default webmail site:www.directadmin.com
Jeff
 

DaNgErOuS

Verified User
Joined
Sep 19, 2010
Messages
47
hi to all
i try to searching this dork in google but i see this topics :
http://www.directadmin.com/forum/showthread.php?t=35233
http://help.directadmin.com/item.php?id=92

and other topics that dont solving my problem

i wana when i click on the webmail icon on top of the page , then opend /roundcube Instead of /squremail
pictures has been attached
when i click on the webmail i going to this address http://xxx.xxx.xx.x/squirrelmail but i wanna going to this address : http://xxx.xxx.xx.x/roundcube

tnx
 

Attachments

johannes

Verified User
Joined
Feb 18, 2007
Messages
224
I did it like this: added 1 line in the directadmin.conf:

"webmail_link=roundcube" (for roundcube in my case) and restart DA.
 

ditto

Verified User
Joined
Apr 27, 2009
Messages
2,513
Make sure that you have no other webmail_link line in directadmin.conf, and also try to move webmail_link=roundcube to the bottom bottom of the file, and then make sure you have a empty line below it. It might do the difference.
 

DaNgErOuS

Verified User
Joined
Sep 19, 2010
Messages
47
i dont understand that where i can change this changes ?

ability to set whichever webmail program you wish to have.
webmail_link=squirrelmail

will be the default, but can be changed by adding webmail_link=other to the directadmin.conf file.

Token will be set to |WEBMAIL_LINK|

The webmail link only applies to the enhanced skin:
SKINS:
header_bar.html
header_wide.html
replace "squirrelmail" with "|WEBMAIL_LINK|"

Also add option to directadmin.conf to hide the 2 webmail links on the User/Email page. (webmail button is not affected)

hide_webmail_links=1
in the directadimin.conf, default is 0.
Token added
HIDE_WEBMAIL_LINKS=yes
or
HIDE_WEBMAIL_LINKS=no
SKINS:
user/show_domain.html (enhanced)
or
user/email/email.html (default and power_user)

eg:

|*if HIDE_WEBMAIL_LINKS!="yes"|
show the urls /squirrelmail /webmail
|*endif|

The enhanced skin is more complicated due to the check for a 0 email limit as well in combination with the fact that the if statments only support single booleans.

Here is the solution by creating a variable called SHOW_LINKS that default to yes:

|?SHOW_LINKS=yes|
|*if USEREMAILMAX!="0"|
show spam filters link.
|*else|
|?SHOW_LINKS=no|
|*endif|
|*if HIDE_WEBMAIL_LINKS="yes"|
|?SHOW_LINKS=no|
|*endif|
|*if SHOW_LINKS="yes"|
<a href="|HTTP|://|HOSTNAME|/squirrelmail" target="_blank">|LANG_WEBMAIL_SM|</a><br>
<a href="|HTTP|://|HOSTNAME|/webmail" target="_blank">|LANG_WEBMAIL_UEBI|</a><br>
|*endif|
 

SeLLeRoNe

Super Moderator
Joined
Oct 9, 2004
Messages
6,791
Location
A Coruña, Spain
for example add
Code:
webmail_link=roundcube
to

Code:
/usr/local/directadmin/conf/directadmin.conf
And BE SURE that there is no other webmail_link in this file.

If is already present in the file, just change the value after = with the webmail you prefer.

Regards
 

DaNgErOuS

Verified User
Joined
Sep 19, 2010
Messages
47
hi
tanks all my problem has been solved with your help.
i see /usr/local/directadmin/conf/directadmin.conf and no webmail_link in this file.
i add webmail_link=roundcube and save it and then restart directadmin
*without restart the changes not applied *
service directadmin restart
tanks all
 

Overseer

Verified User
Joined
Mar 6, 2008
Messages
13
> i add webmail_link=roundcube and save it and then restart directadmin
how to change http://WEBMAILLINK to httpS://WEBMAILLINK? :confused:

P.S.
changed it here:
/usr/local/directadmin/data/skins/enhanced/header_wide.html
/usr/local/directadmin/data/skins/enhanced/header_bar.html
:D
 
Last edited:

shivahost

Verified User
Joined
Mar 7, 2013
Messages
208
you must add "webmail_link=roundcube" into "/usr/local/directadmin/conf/directadmin.conf" from ssh with nano command and after that restart DA. If you add from DA file editor it not wokrs!
 
Top