Changeset 1275

Show
Ignore:
Timestamp:
07/18/08 09:28:29 (1 month ago)
Author:
rats
Message:

* Fixed #1423: e-mail as normal mail and e-mail forward not in /etc/courier/userdb
* Fixed #1424: Adminstrator password created by setup is truncated at 8 characters
* Fixed #1428: ispell is needed for webmail

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/CHANGELOG

    r1273 r1275  
    1010                * Fixed #1420: Missing menu when a client try to edit email: client/mail_edit.php 
    1111                * Fixed #1421: Client can`t change sql password: client/sql_change_password.php (template error) 
     12                * Fixed #1423: e-mail as normal mail and e-mail forward not in /etc/courier/userdb 
     13                * Fixed #1424: Adminstrator password created by setup is truncated at 8 characters 
     14                * Fixed #1428: ispell is needed for webmail 
    1215 
    13162008-07-16 Benedikt Heintel 
  • trunk/docs/Debian/debian-packages-etch

    r1257 r1275  
    1818gzip 
    1919iptables 
     20ispell 
    2021libapache2-mod-cband 
    2122libapache2-mod-fastcgi 
  • trunk/docs/Debian/debian-packages-lenny

    r1258 r1275  
    1818gzip 
    1919iptables 
     20ispell 
    2021libapache2-mod-fastcgi 
    2122libberkeleydb-perl 
  • trunk/docs/Debian/debian-packages-sarge

    r1257 r1275  
    1616gzip 
    1717iptables 
     18ispell 
    1819libapache2-mod-fastcgi 
    1920libberkeleydb-perl 
  • trunk/docs/Ubuntu/ubuntu-packages-edgy

    r1257 r1275  
    1414gzip 
    1515iptables 
     16ispell 
    1617libapache2-mod-cband 
    1718libapache2-mod-fastcgi 
  • trunk/docs/Ubuntu/ubuntu-packages-feisty

    r1106 r1275  
    1616gzip 
    1717iptables 
     18ispell 
    1819libapache2-mod-cband 
    1920libapache2-mod-fastcgi 
  • trunk/docs/Ubuntu/ubuntu-packages-gutsy

    r1106 r1275  
    1616gzip 
    1717iptables 
     18ispell 
    1819libapache2-mod-cband 
    1920libapache2-mod-fastcgi 
  • trunk/docs/Ubuntu/ubuntu-packages-hardy

    r1234 r1275  
    1717gzip 
    1818iptables 
     19ispell 
    1920libapache2-mod-fastcgi 
    2021libberkeleydb-perl 
  • trunk/engine/ispcp-mbox-mngr

    r1138 r1275  
    330330        my ($hash_key, $hash_value, $dmn_name) = (undef, undef, undef); 
    331331 
    332         if ($mail_type =~ /^normal_mail.*/) { 
     332        if ($mail_type =~ /.*normal_mail.*/) { 
    333333 
    334334                $dmn_name = $main::domain_id_name{$mail_dmn_id}; 
     
    338338                $hash_value = "$mail_acc\@$dmn_name$mail_forward_list,$mail_acc\@ispcp-arpl.$dmn_name"; 
    339339 
    340         } elsif ($mail_type =~ /^alias_mail.*/) { 
     340        } elsif ($mail_type =~ /.*alias_mail.*/) { 
    341341 
    342342                $dmn_name = $main::als_id_name{$mail_sub_id}; 
     
    346346                $hash_value = "$mail_acc\@$dmn_name$mail_forward_list,$mail_acc\@ispcp-arpl.$dmn_name"; 
    347347 
    348         } elsif ($mail_type  =~ /^subdom_mail.*/) { 
     348        } elsif ($mail_type  =~ /.*subdom_mail.*/) { 
    349349 
    350350                my $sub_pref = $main::sub_id_name{$mail_sub_id}; 
     
    394394        return $rs if ($rs != 0); 
    395395 
    396     } if ($mail_type =~ /^normal_mail.*/ || $mail_type =~ /^alias_mail.*/ || $mail_type  =~ /^subdom_mail.*/); 
     396    } if ($mail_type =~ /.*normal_mail.*/ || $mail_type =~ /.*alias_mail.*/ || $mail_type  =~ /.*subdom_mail.*/); 
    397397 
    398398    do { 
     
    462462        return $rs if ($rs != 0); 
    463463 
    464     } if ($mail_type eq 'normal_forward' || $mail_type eq 'alias_forward'); 
     464    } if ($mail_type =~ /.*normal_forward.*/ || $mail_type =~ /.*alias_forward.*/); 
    465465 
    466466    do { 
     
    519519        return $rs if ($rs != 0); 
    520520 
    521     } if ($mail_type eq 'subdom_forward'); 
     521    } if ($mail_type =~ /.*subdom_forward.*/); 
    522522 
    523523    $rs = sys_command("$cmd_postmap $transport_cfg"); 
     
    553553    my $mail_type = @$mbox_data[5]; 
    554554 
    555     if ($mail_type eq 'alias_mail' || $mail_type eq 'alias_forward') { 
     555    if ($mail_type =~ /.*alias_mail.*/ || $mail_type =~ /.*alias_forward.*/) { 
    556556 
    557557        $sql = "select count(mail_id) as cnt from mail_users where (status = 'ok' or status = 'change') and mail_auto_respond != '_no_' and domain_id = $mail_dmn_id and sub_id = $mail_sub_id and mail_type != 'normal_catchall' and mail_type != 'alias_catchall';"; 
     
    610610    my $hash_key = "ispcp-arpl.$dmn_name"; 
    611611 
    612     if ($mail_type eq 'alias_mail' || $mail_type eq 'alias_forward') { 
     612    if ($mail_type =~ /.*alias_mail.*/ || $mail_type =~ /.*alias_forward.*/) { 
    613613 
    614614        my $als_name = $main::als_id_name{$mail_sub_id}; 
     
    736736    do { 
    737737 
    738                 if ($mail_type =~ /^normal_mail.*/) { 
     738                if ($mail_type =~ /.*normal_mail.*/) { 
    739739 
    740740                $dmn_name = $main::domain_id_name{$mail_dmn_id}; 
     
    742742                $hash_key = "$mail_acc\@$dmn_name"; 
    743743 
    744                 } elsif ($mail_type =~ /^alias_mail.*/) { 
     744                } elsif ($mail_type =~ /.*alias_mail.*/) { 
    745745 
    746746                $dmn_name = $main::als_id_name{$mail_sub_id}; 
     
    748748                $hash_key = "$mail_acc\@$dmn_name"; 
    749749 
    750                 } elsif ($mail_type =~ /^subdom_mail.*/) { 
     750                } elsif ($mail_type =~ /.*subdom_mail.*/) { 
    751751 
    752752            my $sub_pref = $main::sub_id_name{$mail_sub_id}; 
     
    11561156        } 
    11571157 
    1158     } if ($mail_type eq 'normal_forward' || $mail_type eq 'alias_forward' || $mail_type eq 'subdom_forward'); 
     1158    } if ($mail_type =~ /.*normal_forward.*/ || $mail_type =~ /.*alias_forward.*/ || $mail_type =~ /.*subdom_forward.*/); 
    11591159 
    11601160    do { 
     
    14921492        } 
    14931493 
    1494     } if ($mail_type eq 'normal_forward' || $mail_type eq 'alias_forward' || $mail_type eq 'subdom_forward'); 
     1494    } if ($mail_type =~ /.*normal_forward.*/ || $mail_type =~ /.*alias_forward.*/ || $mail_type =~ /.*subdom_forward.*/); 
    14951495 
    14961496    do { 
     
    18911891 
    18921892 
    1893     } if ($mail_type eq 'normal_mail'); 
     1893    } if ($mail_type =~ /^normal_mail.*/); 
    18941894 
    18951895    do { 
     
    19101910 
    19111911 
    1912     } if ($mail_type eq 'alias_mail'); 
     1912    } if ($mail_type =~ /^alias_mail.*/); 
    19131913 
    19141914    do { 
     
    19331933 
    19341934 
    1935     } if ($mail_type eq 'subdom_mail'); 
     1935    } if ($mail_type =~ /^subdom_mail.*/); 
    19361936 
    19371937    ($rs, $working) = get_file($userdb_working_cfg); 
     
    20362036 
    20372037 
    2038     } if ($mail_type eq 'normal_mail'); 
     2038    } if ($mail_type =~ /.*normal_mail.*/); 
    20392039 
    20402040    do { 
     
    20492049 
    20502050 
    2051     } if ($mail_type eq 'alias_mail'); 
     2051    } if ($mail_type =~ /.*alias_mail.*/); 
    20522052 
    20532053    do { 
     
    20662066 
    20672067 
    2068     } if ($mail_type eq 'subdom_mail'); 
     2068    } if ($mail_type =~ /.*subdom_mail.*/); 
    20692069 
    20702070    ($rs, $working) = get_file($userdb_working_cfg); 
     
    21972197        $hash_value = "OK"; 
    21982198 
    2199     } if ($mail_type eq 'normal_mail'); 
     2199    } if ($mail_type =~ /.*normal_mail.*/); 
    22002200 
    22012201    do { 
     
    22192219        $hash_value = "OK"; 
    22202220 
    2221     } if ($mail_type eq 'alias_mail'); 
     2221    } if ($mail_type =~ /.*alias_mail.*/); 
    22222222 
    22232223    do { 
     
    22452245        $hash_value = "OK"; 
    22462246 
    2247     } if ($mail_type eq 'subdom_mail'); 
    2248  
    2249     if ($mail_type eq 'normal_mail' || $mail_type eq 'subdom_mail' || $mail_type eq 'alias_mail') { 
     2247    } if ($mail_type =~ /.*subdom_mail.*/); 
     2248 
     2249    if ($mail_type=~ /.*normal_mail.*/ || $mail_type=~ /.*subdom_mail.*/ || $mail_type=~ /.*alias_mail.*/) { 
    22502250 
    22512251 
     
    23692369        $hash_value = "OK"; 
    23702370 
    2371     } if ($mail_type eq 'normal_mail'); 
     2371    } if ($mail_type =~ /.*normal_mail.*/); 
    23722372 
    23732373    do { 
     
    23912391        $hash_value = "OK"; 
    23922392 
    2393     } if ($mail_type eq 'alias_mail'); 
     2393    } if ($mail_type =~ /.*alias_mail.*/); 
    23942394 
    23952395    do { 
     
    24172417        $hash_value = "OK"; 
    24182418 
    2419     } if ($mail_type eq 'subdom_mail'); 
     2419    } if ($mail_type =~ /.*subdom_mail.*/); 
    24202420 
    24212421    if ($mail_type eq 'normal_mail' || $mail_type eq 'subdom_mail' || $mail_type eq 'alias_mail') { 
  • trunk/engine/ispcp_common_methods.pl

    r1260 r1275  
    10411041    } 
    10421042 
    1043     my ($rs, $rdata) = gen_rand_num(2); 
     1043    my ($rs, $rdata) = gen_rand_num(8); 
    10441044 
    10451045    return (-1, '') if ($rs != 0); 
  • trunk/engine/setup/ispcp-setup

    r1260 r1275  
    717717        # 
    718718 
    719         my $admin_password = crypt_data($main::ua{'admin_password'}); 
     719        my $admin_password = crypt_md5_data($main::ua{'admin_password'}); 
    720720 
    721721        $sql = "INSERT INTO admin (admin_id, admin_name, admin_pass, admin_type, email) VALUES  (1, '$main::ua{'admin'}','$admin_password', 'admin','$main::ua{'admin_email'}')"; 
  • trunk/gui/include/login.php

    r1246 r1275  
    5050 
    5151            if (isset($_SESSION['user_logged'])) { 
    52                 write_log($uname." user already logged or session sharing problem! Aborting..."); 
     52                write_log(tr("%s user already logged or session sharing problem! Aborting...", $uname)); 
    5353                system_message(tr('User already logged or session sharing problem! Aborting...')); 
    5454                unset_user_login_data(); 
     
    5757 
    5858            if (!is_userdomain_ok($uname)) { 
    59                 write_log($uname." Domain status is not OK - user cannot login"); 
     59                write_log(tr("%s's account status is not ok!", $uname)); 
    6060                system_message(tr("%s's account status is not ok!", $uname)); 
    6161                return false; 
     
    8888        } else { 
    8989                $backButtonDestination = 'http://' . Config::get('BASE_SERVER_VHOST'); 
    90          
     90 
    9191                write_log($uname . ' entered incorrect password.'); 
    9292                system_message(tr('You entered an incorrect password.'), $backButtonDestination);