automatic webmail link

Discussion in 'Installation/Configuration' started by admins, May 13, 2009.

  1. admins

    admins Member

    Hi till
    Hi all

    I want when I create a new site, that ISPConfig automatic set a Symlink to
    /var/www/webmail in the webpart of the new customer.

    So that I do not must everytime set the symlink.

    thanks for ideas.
    admins
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    E.g. you can write a plugin for that.
     
  3. admins

    admins Member

    How could I do this?
    Could you do this for me? Is this a big work?

    Thanks
    admins
     
  4. 3cwired_com

    3cwired_com New Member

    I would like this feature also. thanks.
     
  5. SamTzu

    SamTzu Active Member

    Friends, please.
    If You want Falco or Till to work for You, You should at least pay them for their work.
    Just my humble opinion. I find it difficult to get people to work free for me (or if they do, the deadlines are just horrible.)
     
  6. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    I got a plugin ready for this.

    Just copy the content to a file
    Code:
    /usr/local/ispconfig/server/plugins-available/webmail_symlink_plugin.inc.php
    and create a symlink in plugins-enabled
    Code:
    ln -s /usr/local/ispconfig/server/plugins-available/webmail_symlink_plugin.inc.php /usr/local/ispconfig/server/plugins-enabled/webmail_symlink_plugin.inc.php
    Please note: the symlink is automatically removed / not created if suphp is enabled for this website as suphp doesn't allow symlinks outside the docroot.

    PHP:
    <?php

    /*
    Copyright (c) 2007 - 2009, Till Brehm, projektfarm Gmbh
    All rights reserved.
    Modification (c) 2009, Marius Cramer, pixcept KG

    Redistribution and use in source and binary forms, with or without modification,
    are permitted provided that the following conditions are met:

        * Redistributions of source code must retain the above copyright notice,
          this list of conditions and the following disclaimer.
        * Redistributions in binary form must reproduce the above copyright notice,
          this list of conditions and the following disclaimer in the documentation
          and/or other materials provided with the distribution.
        * Neither the name of ISPConfig nor the names of its contributors
          may be used to endorse or promote products derived from this software without
          specific prior written permission.

    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
    ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
    INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
    BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
    DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
    OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
    NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
    EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    */

    class webmail_symlink_plugin {
        
        var 
    $plugin_name 'webmail_symlink_plugin';
        var 
    $class_name 'webmail_symlink_plugin';
        
        var 
    $action;
        
        
    //* This function is called during ispconfig installation to determine
        //  if a symlink shall be created for this plugin.
        
    function onInstall() {
            global 
    $conf;
            
            if(
    $conf['services']['web'] == true) {
                return 
    true;
            } else {
                return 
    false;
            }
            
        }
        
            
        
    /*
             This function is called when the plugin is loaded
        */
        
        
    function onLoad() {
            global 
    $app;
            
            
    /*
            Register for the events
            */
            
            
    $app->plugins->registerEvent('web_domain_insert',$this->plugin_name,'insert');
            
    $app->plugins->registerEvent('web_domain_update',$this->plugin_name,'update');
        }
        
        function 
    insert($event_name,$data) {
            global 
    $app$conf;
            
            
    $this->action 'insert';
            
    // just run the update function
            
    $this->update($event_name,$data);
        }
        
        function 
    update($event_name,$data) {
            global 
    $app$conf;
            
            if(
    $this->action != 'insert'$this->action 'update';
            
            if(
    $data["new"]["type"] != "vhost" && $data["new"]["parent_domain_id"] > 0) {
                
                
    $old_parent_domain_id intval($data["old"]["parent_domain_id"]);
                
    $new_parent_domain_id intval($data["new"]["parent_domain_id"]);
                
                
    // If the parent_domain_id has been chenged, we will have to update the old site as well.
                
    if($this->action == 'update' && $data["new"]["parent_domain_id"] != $data["old"]["parent_domain_id"]) {
                    
    $tmp $app->db->queryOneRecord("SELECT * FROM web_domain WHERE domain_id = ".$old_parent_domain_id." AND active = 'y'");
                    
    $data["new"] = $tmp;
                    
    $data["old"] = $tmp;
                    
    $this->action 'update';
                    
    $this->update($event_name,$data);
                }
                
                
    // This is not a vhost, so we need to update the parent record instead.
                
    $tmp $app->db->queryOneRecord("SELECT * FROM web_domain WHERE domain_id = ".$new_parent_domain_id." AND active = 'y'");
                
    $data["new"] = $tmp;
                
    $data["old"] = $tmp;
                
    $this->action 'update';
            }
            
            if(
    $data["new"]["document_root"] == '') {
                
    $app->log("document_root not set",LOGLEVEL_WARN);
                return 
    0;
            }
            
            if(!
    is_dir($data["new"]["document_root"]."/web")) exec("mkdir -p ".$data["new"]["document_root"]."/web");
            if(
    $data["new"]["php"] == "suphp") {
                if(
    is_link($data["new"]["document_root"]."/web/webmail")) exec("rm -f ".$data["new"]["document_root"]."/web/webmail");
            } else {
                if(!
    is_link($data["new"]["document_root"]."/web/webmail")) exec("ln -s /var/www/webmail ".$data["new"]["document_root"]."/web/webmail");
                else 
    exec("ln -sf /var/www/webmail ".$data["new"]["document_root"]."/web/webmail");
            }
        }
        

    // end class

    ?>
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Thank you very much for the plugin!

    Also the combination php as cgi + suexec or php-fcgi + suexec might have the same problem as suphp if the scripts for the webmail application are not within /var/www or do not belong to the admin user of the site, so it might be a good idea to exclude these combinations also from symlinking?
     
  8. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    I tested the plugin with a site with cgi, fast-cgi, modphp enabled and had no problems yet. But maybe you are right that there are some functions that would not work correctly. I am really not sure about that.


    edit: sorry, you are right! i didn't set the suexec option so you are right. with that enabled there might be problems. I'll change the plugin.
     
    Last edited: Jun 4, 2009
  9. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Here is the updated plugin.

    Symlink is now disabled when
    • suPHP is used
    • CGI is used with suexec
    • Fast-CGI is used with suexec

    PHP:
    <?php

    /*
    Copyright (c) 2007 - 2009, Till Brehm, projektfarm Gmbh
    All rights reserved.
    Modification (c) 2009, Marius Cramer, pixcept KG 

    Redistribution and use in source and binary forms, with or without modification,
    are permitted provided that the following conditions are met:

        * Redistributions of source code must retain the above copyright notice,
          this list of conditions and the following disclaimer.
        * Redistributions in binary form must reproduce the above copyright notice,
          this list of conditions and the following disclaimer in the documentation
          and/or other materials provided with the distribution.
        * Neither the name of ISPConfig nor the names of its contributors
          may be used to endorse or promote products derived from this software without
          specific prior written permission.

    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
    ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
    INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
    BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
    DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
    OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
    NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
    EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    */

    class webmail_symlink_plugin {
        
        var 
    $plugin_name 'webmail_symlink_plugin';
        var 
    $class_name 'webmail_symlink_plugin';
        
        var 
    $action;
        
        
    //* This function is called during ispconfig installation to determine
        //  if a symlink shall be created for this plugin.
        
    function onInstall() {
            global 
    $conf;
            
            if(
    $conf['services']['web'] == true) {
                return 
    true;
            } else {
                return 
    false;
            }
            
        }
        
            
        
    /*
             This function is called when the plugin is loaded
        */
        
        
    function onLoad() {
            global 
    $app;
            
            
    /*
            Register for the events
            */
            
            
    $app->plugins->registerEvent('web_domain_insert',$this->plugin_name,'insert');
            
    $app->plugins->registerEvent('web_domain_update',$this->plugin_name,'update');
        }
        
        function 
    insert($event_name,$data) {
            global 
    $app$conf;
            
            
    $this->action 'insert';
            
    // just run the update function
            
    $this->update($event_name,$data);
        }
        
        function 
    update($event_name,$data) {
            global 
    $app$conf;
            
            if(
    $this->action != 'insert'$this->action 'update';
            
            if(
    $data["new"]["type"] != "vhost" && $data["new"]["parent_domain_id"] > 0) {
                
                
    $old_parent_domain_id intval($data["old"]["parent_domain_id"]);
                
    $new_parent_domain_id intval($data["new"]["parent_domain_id"]);
                
                
    // If the parent_domain_id has been chenged, we will have to update the old site as well.
                
    if($this->action == 'update' && $data["new"]["parent_domain_id"] != $data["old"]["parent_domain_id"]) {
                    
    $tmp $app->db->queryOneRecord("SELECT * FROM web_domain WHERE domain_id = ".$old_parent_domain_id." AND active = 'y'");
                    
    $data["new"] = $tmp;
                    
    $data["old"] = $tmp;
                    
    $this->action 'update';
                    
    $this->update($event_name,$data);
                }
                
                
    // This is not a vhost, so we need to update the parent record instead.
                
    $tmp $app->db->queryOneRecord("SELECT * FROM web_domain WHERE domain_id = ".$new_parent_domain_id." AND active = 'y'");
                
    $data["new"] = $tmp;
                
    $data["old"] = $tmp;
                
    $this->action 'update';
            }
            
            if(
    $data["new"]["document_root"] == '') {
                
    $app->log("document_root not set",LOGLEVEL_WARN);
                return 
    0;
            }
            
            
    $symlink true;
            if(
    $data["new"]["php"] == "suphp"$symlink false;
            elseif(
    $data["new"]["php"] == "cgi" && $data["new"]["suexec"] == "y"$symlink false;
            elseif(
    $data["new"]["php"] == "fast-cgi" && $data["new"]["suexec"] == "y"$symlink false;
            
            
            if(!
    is_dir($data["new"]["document_root"]."/web")) exec("mkdir -p ".$data["new"]["document_root"]."/web");
            if(
    $symlink == false) {
                if(
    is_link($data["new"]["document_root"]."/web/webmail")) exec("rm -f ".$data["new"]["document_root"]."/web/webmail");
            } else {
                if(!
    is_link($data["new"]["document_root"]."/web/webmail")) exec("ln -s /var/www/webmail ".$data["new"]["document_root"]."/web/webmail");
                else 
    exec("ln -sf /var/www/webmail ".$data["new"]["document_root"]."/web/webmail");
            }
        }
        

    // end class

    ?>
     
  10. pmcdougl

    pmcdougl New Member

    Hi, I just tried this and when I try to access any of the websites I create and go to the webmail directory, I get a 403 forbidden...did I do something wrong?

    for example, I have site1.something.com, and site2.something.com...when I go to site1.something.com/webmail I get a 403 forbidden (in site2 as well). The symlinks are in the web directories of both the sites, but I still get the 403. Also, when I login via FTP it says that webmail is a broken link, but I suspect this to be normal, as my ftp login cannot see into other directories on the system.

    Any words of wisdom?
    Thanks in advance
     
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    Which FTP method did you select for the sites? This plugin works only for mod_php
     
  12. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    in addition to that: did you install your webmail software in /var/www/webmail ?
    It needs to be in that location for this plugin to work.
     
  13. pmcdougl

    pmcdougl New Member

    I did install squirelmail in the directory specified by the perfect server guide for Ubuntu 9.04. I do not know what FTP method I am using. I think the problem is in Apache somewhere. It is not allowing me to cross over directories. The site with the symlink is in /var/www/clients/client1/web5/web and webmail has a symlink in /var/www/webmail to /usr/share/squirrelmail/ I think maybe this is where the problem is...I used the Ubuntu 9.04 perfect server guide, if that helps.

    Sorry I am such a n00b at this, but I am learning a ton thanks to everyone here at howtoforge!
     
  14. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    So just to be sure everything is as it should be:

    1. There is /usr/share/squirrelmail as a physical existing directory.
    2. There is /var/www/webmail which itself is a symlink to /usr/share/squirrelmail
    3. There is /var/www/clients/client1/web5/web/webmail which is a symlink to /var/www/webmail

    Is everything like that?

    What do you get when you do this command:
    Code:
    ls -l /var/www/clients/client1/web5/web/webmail/*
    Doublecheck that the squirrelmail installation is readable by everyone.
     
  15. pmcdougl

    pmcdougl New Member

    Yes
    Yes
    Yes


    Yes

    Code:
    administrator@MCDOUGLELINUX:~$ ls -l /var/www/clients/client1/web5/web/webmail/*
    lrwxrwxrwx  1 root root   17 2009-06-10 14:48 /var/www/clients/client1/web5/web/webmail/config -> /etc/squirrelmail
    -rw-r--r--  1 root root  672 2007-01-13 14:07 /var/www/clients/client1/web5/web/webmail/index.php
    
    /var/www/clients/client1/web5/web/webmail/class:
    total 28
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 deliver
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 helper
    -rw-r--r-- 1 root root 4825 2008-02-10 10:49 html.class.php
    -rw-r--r-- 1 root root  479 2008-02-10 10:49 index.php
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 mime
    -rw-r--r-- 1 root root  933 2008-02-10 10:49 mime.class.php
    
    /var/www/clients/client1/web5/web/webmail/functions:
    total 644
    -rw-r--r-- 1 root root 14445 2007-01-13 14:07 abook_database.php
    -rw-r--r-- 1 root root 11728 2008-02-10 10:49 abook_ldap_server.php
    -rw-r--r-- 1 root root 18563 2007-01-13 14:07 abook_local_file.php
    -rw-r--r-- 1 root root 21557 2008-02-10 10:49 addressbook.php
    -rw-r--r-- 1 root root  8180 2008-02-10 10:49 attachment_common.php
    -rw-r--r-- 1 root root  9830 2007-10-30 11:28 auth.php
    -rw-r--r-- 1 root root  1809 2008-02-10 10:49 constants.php
    -rw-r--r-- 1 root root 11593 2007-05-29 10:22 date.php
    -rw-r--r-- 1 root root 11665 2008-02-10 10:49 db_prefs.php
    drwxr-xr-x 2 root root  4096 2009-06-10 14:48 decode
    -rw-r--r-- 1 root root  6786 2008-02-10 10:49 display_messages.php
    drwxr-xr-x 2 root root  4096 2009-06-10 14:48 encode
    -rw-r--r-- 1 root root  9441 2009-05-16 13:26 file_prefs.php
    -rw-r--r-- 1 root root  4163 2008-04-29 18:27 forms.php
    -rw-r--r-- 1 root root  8260 2008-02-10 10:49 gettext.php
    -rw-r--r-- 1 root root 16691 2009-05-16 13:26 global.php
    -rw-r--r-- 1 root root  4879 2008-02-10 10:49 html.php
    -rw-r--r-- 1 root root 37071 2008-05-20 11:15 i18n.php
    -rw-r--r-- 1 root root  6049 2008-02-10 10:49 identity.php
    -rw-r--r-- 1 root root 36946 2009-05-16 13:26 imap_general.php
    -rw-r--r-- 1 root root 30348 2007-09-03 06:37 imap_mailbox.php
    -rw-r--r-- 1 root root 33915 2008-03-14 04:38 imap_messages.php
    -rw-r--r-- 1 root root   648 2008-02-10 10:49 imap.php
    -rw-r--r-- 1 root root  4483 2008-02-10 10:49 imap_search.php
    -rw-r--r-- 1 root root  7234 2008-02-10 10:49 imap_utf7_local.php
    -rw-r--r-- 1 root root   479 2008-02-10 10:49 index.php
    -rw-r--r-- 1 root root 48004 2008-02-10 10:49 mailbox_display.php
    -rw-r--r-- 1 root root 99814 2009-05-16 13:26 mime.php
    -rw-r--r-- 1 root root 36276 2008-05-07 11:19 options.php
    -rw-r--r-- 1 root root 14018 2007-07-14 14:04 page_header.php
    -rw-r--r-- 1 root root  6518 2008-02-10 10:49 plugin.php
    -rw-r--r-- 1 root root  5116 2007-08-09 01:52 prefs.php
    -rw-r--r-- 1 root root 25605 2008-05-23 12:31 strings.php
    -rw-r--r-- 1 root root  7257 2008-02-10 10:49 tree.php
    -rw-r--r-- 1 root root  9398 2007-12-16 09:58 url_parser.php
    
    /var/www/clients/client1/web5/web/webmail/help:
    total 116
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 bg_BG
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 ca_ES
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 cs_CZ
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 cy_GB
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 da_DK
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 de_DE
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 en_GB
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 en_US
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 es_ES
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 fi_FI
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 fr_FR
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 id_ID
    -rw-r--r-- 1 root root  485 2006-02-03 16:27 index.php
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 it_IT
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 ja_JP
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 ko_KR
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 lt_LT
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 nl_NL
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 pl_PL
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 pt_BR
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 pt_PT
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 ru_RU
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 sk_SK
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 sl_SI
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 sr_YU
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 sv_SE
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 th_TH
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 uk_UA
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 zh_CN
    
    /var/www/clients/client1/web5/web/webmail/images:
    total 300
    -rw-r--r-- 1 root root   943 2005-02-07 11:38 blank.png
    -rw-r--r-- 1 root root   673 2003-07-21 04:20 delitem.png
    -rw-r--r-- 1 root root   272 2001-12-14 03:08 down_pointer.png
    -rw-r--r-- 1 root root   278 2003-07-21 04:20 draft.png
    -rw-r--r-- 1 root root   232 2003-07-21 04:20 folder.png
    -rw-r--r-- 1 root root   248 2003-07-21 04:20 inbox.png
    -rw-r--r-- 1 root root   485 2006-02-03 16:27 index.php
    -rw-r--r-- 1 root root   291 2003-07-21 04:20 minus.png
    -rw-r--r-- 1 root root   288 2003-07-21 04:20 plus.png
    -rw-r--r-- 1 root root  3259 2008-04-04 06:17 sec_remove_bn_IN.png
    -rw-r--r-- 1 root root  4811 2008-04-04 06:17 sec_remove_cs_CZ.png
    -rw-r--r-- 1 root root  6209 2008-04-04 06:17 sec_remove_da_DK.png
    -rw-r--r-- 1 root root  1382 2008-04-04 06:17 sec_remove_de_DE.png
    -rw-r--r-- 1 root root 21004 2008-04-04 06:17 sec_remove_el_GR.png
    -rw-r--r-- 1 root root  4261 2002-01-08 04:09 sec_remove_eng.png
    -rw-r--r-- 1 root root  5618 2008-04-04 06:17 sec_remove_es_ES.png
    -rw-r--r-- 1 root root  4177 2008-04-04 06:17 sec_remove_et_EE.png
    -rw-r--r-- 1 root root  3670 2008-04-04 06:17 sec_remove_fi_FI.png
    -rw-r--r-- 1 root root  8066 2008-04-04 06:17 sec_remove_fo_FO.png
    -rw-r--r-- 1 root root 14118 2008-04-04 06:17 sec_remove_fr_FR.png
    -rw-r--r-- 1 root root  5813 2008-04-04 06:17 sec_remove_fy.png
    -rw-r--r-- 1 root root 35215 2008-04-04 06:17 sec_remove_he_IL.png
    -rw-r--r-- 1 root root  5867 2008-04-04 06:17 sec_remove_hr_HR.png
    -rw-r--r-- 1 root root  6578 2008-04-04 06:17 sec_remove_hu_HU.png
    -rw-r--r-- 1 root root  3847 2008-04-04 06:17 sec_remove_id_ID.png
    -rw-r--r-- 1 root root  1459 2008-04-04 06:17 sec_remove_it_IT.png
    -rw-r--r-- 1 root root  3396 2008-04-04 06:17 sec_remove_ja_JP.png
    -rw-r--r-- 1 root root   925 2008-04-04 06:17 sec_remove_ko_KR.png
    -rw-r--r-- 1 root root  2455 2008-04-04 06:17 sec_remove_lt_LT.png
    -rw-r--r-- 1 root root  1229 2008-04-04 06:17 sec_remove_nb_NO.png
    -rw-r--r-- 1 root root  4656 2008-04-04 06:17 sec_remove_nl_NL.png
    -rw-r--r-- 1 root root  1906 2008-04-04 06:17 sec_remove_nn_NO.png
    -rw-r--r-- 1 root root  1882 2008-04-04 06:17 sec_remove_pt_BR.png
    -rw-r--r-- 1 root root  1352 2008-04-04 06:17 sec_remove_pt_PT.png
    -rw-r--r-- 1 root root  1936 2008-04-04 06:17 sec_remove_ru_RU.png
    -rw-r--r-- 1 root root  4018 2008-04-04 06:17 sec_remove_sk_SK.png
    -rw-r--r-- 1 root root  2460 2008-04-04 06:17 sec_remove_sl_SI.png
    -rw-r--r-- 1 root root  5867 2008-04-04 06:17 sec_remove_sr_YU.png
    -rw-r--r-- 1 root root  2644 2008-04-04 06:17 sec_remove_sv_SE.png
    -rw-r--r-- 1 root root  6306 2008-04-04 06:17 sec_remove_tr_TR.png
    -rw-r--r-- 1 root root  1144 2008-04-04 06:17 sec_remove_ug.png
    -rw-r--r-- 1 root root  4012 2008-04-04 06:17 sec_remove_uk_UA.png
    -rw-r--r-- 1 root root   323 2003-07-21 04:20 senti.png
    -rw-r--r-- 1 root root  7396 2001-12-14 03:08 sm_logo.png
    -rw-r--r-- 1 root root   289 2001-12-14 03:08 sort_none.png
    -rw-r--r-- 1 root root   270 2001-12-14 03:08 up_pointer.png
    
    /var/www/clients/client1/web5/web/webmail/include:
    total 24
    -rw-r--r-- 1 root root   479 2008-02-10 10:49 index.php
    -rw-r--r-- 1 root root 10618 2009-05-16 13:26 load_prefs.php
    drwxr-xr-x 2 root root  4096 2009-06-10 14:48 options
    -rw-r--r-- 1 root root  2461 2008-02-10 10:49 validate.php
    
    /var/www/clients/client1/web5/web/webmail/locale:
    total 200
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 ar
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 bg_BG
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 bn_IN
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 ca_ES
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 cs_CZ
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 cy_GB
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 da_DK
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 de_DE
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 el_GR
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 en_GB
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 es_ES
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 et_EE
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 eu_ES
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 fa_IR
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 fi_FI
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 fo_FO
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 fr_FR
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 fy
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 he_IL
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 hr_HR
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 hu_HU
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 id_ID
    -rw-r--r-- 1 root root  485 2006-02-03 16:27 index.php
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 is_IS
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 it_IT
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 ja_JP
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 ka
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 ko_KR
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 lt_LT
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 ms_MY
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 nb_NO
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 nl_NL
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 nn_NO
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 pl_PL
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 pt_BR
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 pt_PT
    -rw-r--r-- 1 root root 2145 2004-07-01 08:36 README.locales
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 ro_RO
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 ru_RU
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 sk_SK
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 sl_SI
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 sr_YU
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 sv_SE
    -rw-r--r-- 1 root root 7861 2002-03-30 07:13 timezones.cfg
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 tr_TR
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 ug
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 uk_UA
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 zh_CN
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 zh_TW
    
    /var/www/clients/client1/web5/web/webmail/plugins:
    total 80
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 abook_take
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 administrator
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 bug_report
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 calendar
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 delete_move_next
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 demo
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 filters
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 fortune
    -rw-r--r-- 1 root root  480 2006-02-03 16:27 index.php
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 info
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 listcommands
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 mail_fetch
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 message_details
    drwxr-xr-x 3 root root 4096 2009-06-10 14:48 newmail
    -rw-r--r-- 1 root root  945 2003-06-13 00:28 README.plugins
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 sent_subfolders
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 spamcop
    drwxr-xr-x 5 root root 4096 2009-06-10 14:48 squirrelspell
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 test
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 translate
    
    /var/www/clients/client1/web5/web/webmail/po:
    total 88
    -rwxr-xr-x 1 root root   902 2005-08-05 22:49 compilepo
    -rw-r--r-- 1 root root   576 2006-02-03 16:27 independent_strings.txt
    -rw-r--r-- 1 root root   507 2006-02-03 16:27 index.php
    -rwxr-xr-x 1 root root  1408 2003-10-05 04:57 mergepo
    -rw-r--r-- 1 root root 62025 2008-05-15 23:48 squirrelmail.pot
    -rwxr-xr-x 1 root root  3030 2008-05-15 23:48 xgetpo
    
    /var/www/clients/client1/web5/web/webmail/src:
    total 444
    -rw-r--r-- 1 root root  1271 2007-07-14 13:34 addrbook_popup.php
    -rw-r--r-- 1 root root 11207 2007-10-06 22:01 addrbook_search_html.php
    -rw-r--r-- 1 root root 10303 2007-07-14 13:34 addrbook_search.php
    -rw-r--r-- 1 root root 25743 2008-05-07 16:16 addressbook.php
    -rw-r--r-- 1 root root 64677 2008-05-08 02:37 compose.php
    -rw-r--r-- 1 root root 22631 2008-03-03 08:06 configtest.php
    -rw-r--r-- 1 root root  2278 2007-07-14 13:34 delete_message.php
    -rw-r--r-- 1 root root  5225 2007-10-30 11:28 download.php
    -rw-r--r-- 1 root root  2546 2007-07-14 13:34 empty_trash.php
    -rw-r--r-- 1 root root  2593 2007-07-14 13:34 folders_create.php
    -rw-r--r-- 1 root root  4984 2007-07-16 02:18 folders_delete.php
    -rw-r--r-- 1 root root 10658 2007-07-14 13:34 folders.php
    -rw-r--r-- 1 root root  2550 2007-07-14 13:34 folders_rename_do.php
    -rw-r--r-- 1 root root  3059 2007-07-17 17:46 folders_rename_getname.php
    -rw-r--r-- 1 root root  2290 2007-07-14 13:34 folders_subscribe.php
    -rw-r--r-- 1 root root  9261 2007-07-14 13:34 help.php
    -rw-r--r-- 1 root root  2023 2007-07-14 13:34 image.php
    -rw-r--r-- 1 root root   481 2007-01-13 14:07 index.php
    -rw-r--r-- 1 root root 16391 2007-07-14 13:34 left_main.php
    -rw-r--r-- 1 root root  8866 2009-05-16 13:26 login.php
    -rw-r--r-- 1 root root  4028 2007-11-26 19:14 mailto.php
    -rw-r--r-- 1 root root  9483 2007-07-16 16:04 move_messages.php
    -rw-r--r-- 1 root root 16370 2007-07-14 13:34 options_highlight.php
    -rw-r--r-- 1 root root  6457 2007-07-14 13:34 options_identities.php
    -rw-r--r-- 1 root root  5636 2007-07-14 13:34 options_order.php
    -rw-r--r-- 1 root root 18485 2008-02-26 14:28 options.php
    -rw-r--r-- 1 root root 10022 2007-08-12 14:08 printer_friendly_bottom.php
    -rw-r--r-- 1 root root  1546 2007-07-14 13:34 printer_friendly_main.php
    -rw-r--r-- 1 root root  1450 2007-07-14 13:34 printer_friendly_top.php
    -rw-r--r-- 1 root root 34902 2008-05-13 04:38 read_body.php
    -rw-r--r-- 1 root root  7324 2009-05-16 13:26 redirect.php
    -rw-r--r-- 1 root root  7834 2007-11-18 22:20 right_main.php
    -rw-r--r-- 1 root root 20219 2007-10-31 16:10 search.php
    -rw-r--r-- 1 root root  2971 2009-05-16 13:26 signout.php
    -rw-r--r-- 1 root root  8119 2007-07-14 13:34 vcard.php
    -rw-r--r-- 1 root root  4508 2007-07-14 13:34 view_header.php
    -rw-r--r-- 1 root root  3788 2007-08-12 14:08 view_text.php
    -rw-r--r-- 1 root root  5371 2009-05-16 13:26 webmail.php
    
    /var/www/clients/client1/web5/web/webmail/themes:
    total 220
    -rw-r--r-- 1 root root 1032 2007-01-13 14:07 alien_glow.php
    -rw-r--r-- 1 root root 1439 2007-01-13 14:07 autumn2.php
    -rw-r--r-- 1 root root 1435 2007-01-13 14:07 autumn.php
    -rw-r--r-- 1 root root 1467 2007-01-13 14:07 black_bean_burrito_theme.php
    -rw-r--r-- 1 root root 1206 2007-01-13 14:07 blue_grey_theme.php
    -rw-r--r-- 1 root root 1158 2007-01-13 14:07 blue_on_blue.php
    -rw-r--r-- 1 root root 1492 2007-01-13 14:07 bluesnews_theme.php
    -rw-r--r-- 1 root root  933 2007-01-13 14:07 bluesome.php
    -rw-r--r-- 1 root root 1095 2007-01-13 14:07 bluesteel_theme.php
    -rw-r--r-- 1 root root 1131 2007-01-13 14:07 christmas.php
    -rw-r--r-- 1 root root 1451 2007-01-13 14:07 classic_blue2.php
    -rw-r--r-- 1 root root 1447 2007-01-13 14:07 classic_blue.php
    drwxr-xr-x 2 root root 4096 2009-06-10 14:48 css
    -rw-r--r-- 1 root root  810 2007-01-13 14:07 dark_green.php
    -rw-r--r-- 1 root root 1172 2007-01-13 14:07 dark_grey_theme.php
    -rw-r--r-- 1 root root 3940 2008-02-16 06:08 darkness.php
    -rw-r--r-- 1 root root 1264 2007-01-13 14:07 deepocean2_theme.php
    -rw-r--r-- 1 root root 1254 2007-01-13 14:07 deepocean_theme.php
    -rw-r--r-- 1 root root 1807 2007-01-13 14:07 default_theme.php
    -rw-r--r-- 1 root root 1257 2007-01-13 14:07 dompie_theme.php
    -rw-r--r-- 1 root root 1247 2007-01-13 14:07 forest_theme.php
    -rw-r--r-- 1 root root 1167 2007-06-27 11:28 greenhouse_effect.php
    -rw-r--r-- 1 root root 1180 2007-01-13 14:07 high_contrast_theme.php
    -rw-r--r-- 1 root root  961 2007-01-13 14:07 ice_theme.php
    -rw-r--r-- 1 root root  503 2007-01-13 14:07 index.php
    -rw-r--r-- 1 root root 1071 2007-06-27 11:28 in_the_pink.php
    -rw-r--r-- 1 root root 1179 2007-06-27 11:28 kind_of_blue.php
    -rw-r--r-- 1 root root 1727 2007-01-13 14:07 maize_theme.php
    -rw-r--r-- 1 root root 1382 2007-01-13 14:07 methodical_theme.php
    -rw-r--r-- 1 root root 1118 2007-01-13 14:07 midnight.php
    -rw-r--r-- 1 root root 1517 2007-01-13 14:07 minimal_bw.php
    -rw-r--r-- 1 root root 1369 2007-06-27 11:28 monostochastic.php
    -rw-r--r-- 1 root root 1452 2007-01-13 14:07 netstyle_theme.php
    -rw-r--r-- 1 root root 1649 2007-01-13 14:07 penguin.php
    -rw-r--r-- 1 root root  983 2007-01-13 14:07 plain_blue_theme.php
    -rw-r--r-- 1 root root 1445 2007-01-13 14:07 powder_blue.php
    -rw-r--r-- 1 root root 1168 2007-01-13 14:07 purple_theme.php
    -rw-r--r-- 1 root root 1405 2007-06-27 11:28 random.php
    -rw-r--r-- 1 root root   76 2008-02-16 05:57 README.themes
    -rw-r--r-- 1 root root  885 2007-01-13 14:07 redmond.php
    -rw-r--r-- 1 root root 1205 2007-01-13 14:07 sandstorm_theme.php
    -rw-r--r-- 1 root root  697 2007-01-13 14:07 seaspray_theme.php
    -rw-r--r-- 1 root root 1168 2007-01-13 14:07 servery_theme.php
    -rw-r--r-- 1 root root 1132 2007-06-27 11:28 shades_of_grey.php
    -rw-r--r-- 1 root root 1127 2007-01-13 14:07 silver_steel_theme.php
    -rw-r--r-- 1 root root 1623 2007-01-13 14:07 simple_green2.php
    -rw-r--r-- 1 root root 1606 2007-01-13 14:07 simple_green_theme.php
    -rw-r--r-- 1 root root 1624 2007-01-13 14:07 simple_purple.php
    -rw-r--r-- 1 root root 1293 2007-01-13 14:07 slashdot_theme.php
    -rw-r--r-- 1 root root 1105 2007-06-27 11:16 spice_of_life_dark.php
    -rw-r--r-- 1 root root 1104 2007-06-27 11:16 spice_of_life_lite.php
    -rw-r--r-- 1 root root 1235 2007-06-27 11:16 spice_of_life.php
    -rw-r--r-- 1 root root 1446 2007-01-13 14:07 techno_blue.php
    -rw-r--r-- 1 root root 1441 2007-01-13 14:07 turquoise.php
    -rw-r--r-- 1 root root 1111 2007-01-13 14:07 wood_theme.php
    
    How do I go about checking and (if needed) changing this?

    Thanks again for all the help, and sorry that the output of that command was so verbose...
     
  16. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Sorry, but atm I have no idea what to check. It works fine like that on my Debian Lenny Server.
     
  17. KillerSneak

    KillerSneak New Member

Share This Page