PDA

View Full Version : Changing Default Webmail Link



Orbixx
01-21-2009, 10:09 AM
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?

scsi
01-21-2009, 10:10 AM
http://directadmin.com/features.php?id=735

Orbixx
01-21-2009, 10:24 AM
Thank you :)

DaNgErOuS
03-27-2011, 06:30 AM
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
03-27-2011, 04:55 PM
Did you try searching this site? Try this, in google:

change default webmail site:www.directadmin.com
Jeff

DaNgErOuS
03-28-2011, 05:08 AM
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

SeLLeRoNe
03-28-2011, 06:17 AM
Have you open the link posted from scsi at post #2?

http://directadmin.com/features.php?id=735

johannes
03-29-2011, 06:55 AM
I did it like this: added 1 line in the directadmin.conf:

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

ditto
03-29-2011, 07:03 AM
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
03-29-2011, 09:49 PM
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
03-30-2011, 12:47 AM
for example add


webmail_link=roundcube

to


/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
04-02-2011, 11:14 PM
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
04-07-2011, 04:47 AM
> 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

shivahost
11-25-2013, 11:45 AM
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!