Provide modification to "Webmail" url

I was able to modify the skin in skins/enhanced/. I guess that is sufficient to my needs now :)
 
For others

Just an FYI for others who want to edit the skin links. Open up the skin templates in a text editor and look for the following files/lines

header_bar.html: line 10 href="http//|HOSTNAME|/squirrelmail"
header_wide.html: line 8 href="http://|HOSTNAME|/squirrelmail"
user/show_domain.html: line 48 href="|HTTP|://|HOSTNAME|/squirrelmail"


Simply change the directory (/squirelmail) to your preferred email program. another option is if you have your mail somewhere else you can use something like "http://webmail.|HOSTNAME|/" which points to a different box.

A final option, if youre not using the /squirrelmail directory is to set a redirect in apaches conf. If you do it that way you want lose your changes on a skin update.
 
Well it's very easy to change.

Rename the squirellmail dir in /var/www ...

make a new symlink ;)

Newbie here: Can you post the full path please..

I'm looking for a way to modify "WEBMAIL_LINK" in all three files..

I have a gut feeling that it can now be done from one location but I'm at al loss as to wher I gotta go to make the change..

I would like the Webmail button linked to roundcube
 
Last edited:
The path of the directadmin.conf file is /usr/local/directadmin/conf/directadmin.conf

Just for future reference if your on CentOS the easiest way to find the full path to a file is:

Code:
locate filename

If you get a warning about the slocate db then run

Code:
updatedb

Also running
Code:
whereis filename
will give you the directory path of where the file resides.

Grant
 
Thanks.. Yes I am on CentOS.. Unless I'm totally blind, webmail_link is NOT in this file: /usr/local/directadmin/conf/directadmin.conf
 
If you add

Code:
webmail_link=roundcube

and then restart directadmin

Code:
service directadmin restart

The webmail link button will now become http://domain.tld/roundcube.

However the /roundcube alias has to exist in

Code:
/etc/httpd/conf/httpd.conf

or

Code:
/etc/httpd/conf/extra/httpd-alias.conf

depending on if your using either the default customapache or smtalks new custombuild.

The text to look for is

Code:
Alias /roundcube "/var/www/html/roundcubemail/"

or something similar.

if it isn't there then add it. But make sure it points to your roundcube install in

Code:
/var/www/html/
as your directory name maybe different.

Also remeber to restart apache if you edit its config files.

Code:
service httpd restart

Grant
 
If I add it there, how is it going to change the existing squirrelmail link

If a value is not there then a default is used. If you add a value then it will use the one you add.

Basically this is one way of doing it:

Code:
if ($webmail_link eq ""){

     use squirrelmail;

}else{

     use $webmail_link;

}

But of course the programmers have to allow for you to add stuff. You can't just add anything you want. DA allowed for this http://www.directadmin.com/features.php?id=735
 
If you add

Code:
webmail_link=roundcube

and then restart directadmin

Code:
service directadmin restart

The webmail link button will now become http://domain.tld/roundcube.

However the /roundcube alias has to exist in

Code:
/etc/httpd/conf/httpd.conf

or

Code:
/etc/httpd/conf/extra/httpd-alias.conf

depending on if your using either the default customapache or smtalks new custombuild.

The text to look for is

Code:
Alias /roundcube "/var/www/html/roundcubemail/"

or something similar.

if it isn't there then add it. But make sure it points to your roundcube install in

Code:
/var/www/html/
as your directory name maybe different.

Also remeber to restart apache if you edit its config files.

Code:
service httpd restart

Grant

Grant.. Thank you very much... It was added in for me yesterday and if it disappears on the next DA update, then I will definitley be referring to this thread again.. ..

Cheers..
 
Back
Top