Changeset 203

Show
Ignore:
Timestamp:
09/15/07 23:41:59 (16 months ago)
Author:
jonas
Message:

done 0.09

Location:
trunk
Files:
7 modified

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r202 r203  
    1 CpVES 0.09 YYYY-MM-DD - Jonas Genannt - <jonas.genannt@brachium-system.net> 
    2  
     1CpVES 0.09 2007-09-15 - Jonas Genannt - <jonas.genannt@brachium-system.net> 
     2        o Improved: runScripts.sh create_fetchmail.pl should not run on trigger 
     3        o Improved: trigger backendscript marked as stable 
     4        o Removed: all rbl checking code (never used) 
     5        o Fixed: defect mail_system.sql again 
    36CpVES 0.08 2007-09-15 - Jonas Genannt - <jonas.genannt@brachium-system.net> 
    47        o Added: policyd-weight per user/domain configuration 
  • trunk/contrib/installService.sh

    r164 r203  
    33echo "service mailcontrol 
    44{ 
    5         disable         = yes 
     5        disable         = no 
    66        socket_type     = stream 
    77        protocol        = tcp 
  • trunk/includes/config.inc.default.php

    r202 r203  
    6060$config['recipient_classes_grey']=0; 
    6161 
    62 $ar_spam=array("cbl.abuseat.org","multi.surbl.org","sbl-xbl.spamhaus.org"); 
    63  
    6462// use CpVES mailinglist feature  
    6563$config['mailinglists'] = '1'; 
    6664 
    67 //Run Systemscript via xinetd Service  
    68 $config['service_enabled'] = 'n'; // Development, please don't use! 
    69 $config['service_port'] = 7928; // Development, please don't use! 
     65//Trigger system_scripts via webinterface for faster backend: 
     66$config['trigger_service_enabled'] = 0; 
     67$config['trigger_service_host'] = "localhost"; 
     68$config['trigger_service_port'] = 7928; 
    7069 
    7170$options = array( 
     
    8584         "autoresponder_send", "email_options","fetchmail", 
    8685         "mailarchive","mailfilter","spamassassin","spamassassin_learn","autoresponder_xheader"); 
    87 $config['cpves_version']="0.09-SVN"; 
     86$config['cpves_version']="0.09"; 
    8887require_once(ROOT . '/includes/func.inc.php'); 
    8988?> 
  • trunk/includes/func.inc.php

    r198 r203  
    428428function run_systemscripts() { 
    429429        global $config; 
    430         if( $config['service_enabled'] == 'y' ) { 
     430        if( $config['trigger_service_enabled'] == 1 ) { 
    431431                $socket = @socket_create (AF_INET, SOCK_STREAM, 0); 
    432                 $result = @socket_connect ($socket, '127.0.0.1',  
    433                         $config['service_port']); 
     432                $result = @socket_connect ($socket, $config['trigger_service_host'], 
     433                        $config['trigger_service_port']); 
    434434                @socket_close ($socket); 
    435435        } 
  • trunk/includes/sites/main.php

    r182 r203  
    8888}  
    8989} 
    90 /* 
    91 //check for spam: 
    92 if (isset($_SESSION['superadmin']) && $_SESSION['superadmin']=='y'&& $test=='y') 
    93 { 
    94  
    95 require_once 'Net/DNSBL.php'; 
    96 $dnsbl = new Net_DNSBL(); 
    97  
    98 $table_spam=array(); 
    99 while (list($key, $value) = each($ar_spam)) 
    100 //foreach($ar_spam as $value) 
    101 { 
    102         $dnsbl->setBlacklists($value); 
    103         if ($dnsbl->isListed($config['server_ip'])) 
    104         { 
    105                 $smarty->assign('if_blacklist_listet', 'y'); 
    106                 array_push($table_spam, array('spam' => $value)); 
    107         } 
    108          
    109 } 
    110  
    111 $smarty->assign('ipaddr',$config['server_ip'] );  
    112 $smarty->assign('table_spam', $table_spam); 
    113  
    114 } // SPAM CHECK ENDE 
    115 */ 
    11690 
    11791//email user part: 
  • trunk/mail_system.sql

    r199 r203  
    368368INSERT INTO `adm_users` ( `id` , `username` , `passwd` , `access` , `manager` , `full_name` , `cpasswd` , `web_lang` ) 
    369369VALUES ( 
    370 NULL , 'admin', '$1$Ekjbn5PV$lTKL1k2IkDKzpneppf6Wx0', '1', '1', NULL , '', '' 
     370NULL , 'admin', '', '1', '1', NULL , '$1$Ekjbn5PV$lTKL1k2IkDKzpneppf6Wx0', '' 
    371371); 
    372372 
  • trunk/system_scripts/runScripts.sh

    r163 r203  
    66$SCRIPTDIR/create_mailboxes.pl 
    77$SCRIPTDIR/create_mailfilters.pl 
    8 $SCRIPTDIR/create_fetchmail.pl 
    98$SCRIPTDIR/delete_mailbox.pl