Changeset 3147


Ignore:
Timestamp:
05/09/12 18:31:58 (13 months ago)
Author:
squidly
Message:

Ajout configuration squirrelmail + bugfixes pour postfix

Location:
alternc/trunk
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • alternc/trunk/bureau/class/m_mail_jabber.php

    r3135 r3147  
    6666        "label"         => "jabberdemo",      // an internal label  
    6767        "short_desc"    => _("Jabber Demo"),  // A human short description 
     68        "class"         => "mail_jabber", 
    6869        "human_desc"    => _("This is just a demo.<br/>Look at m_mail_jabber.php"), // A human long description 
     70        "form_param"  => Array($mail_id), 
    6971        "url"           => "javascript:alert('Ici un renvoie vers le formulaire adequat de cette entrée.');", // The URL to go 
    7072        "pass_required" => true,                    // This feature require the mail to have a global password ? 
  • alternc/trunk/bureau/class/m_mail_localbox.php

    r3144 r3147  
    6060   */ 
    6161  function set_localbox($mail_id){ 
    62     global $db, $err; 
    63     $err->log("localbox","set_localbox"); 
     62    global $db, $err, $hooks; 
     63    $err->log("localbox","set_localbox!!!!!!!!"); 
    6464    $path="mail/"; 
    6565    if(!$db->query("select distinct left(ad.address,1) as letter,ad.address ,d.domaine from address ad, domaines d where ad.domain_id = d.id  and ad.id = $mail_id order by letter;")); 
     
    6868        return null; 
    6969    } 
     70    //FIXME passer par un hooks pour squirel 
     71                $hooks->invoke('hooks_squirrelmail_init',(array($db->f('address'),$db->f('domaine') )));    
    7072    $path="/var/alternc/mail/".$db->f('letter')."/".$db->f('address')."_".$db->f('domaine'); 
    71     //FIXME faire un touch de la maildir si dovecot ne sait pas le faire. 
    7273    if(!$db->query("INSERT into mailbox (address_id,path,quota) values ($mail_id,'$path',50);"));      
    73  
     74         
    7475  } 
    7576 
    7677  /* 
    77    * Set a localbox 
     78   * Unset a localbox 
    7879   * @param integer $mail_id 
    7980   */ 
    8081  function unset_localbox($mail_id){ 
    81     global $db, $err; 
    82     $err->log("localbox","set_localbox"); 
     82    global $db, $err,$hooks; 
     83    $err->log("localbox","unset_localbox"); 
     84    if(!$db->query("select address,domaine from address,domaines where address.domain_id=domaines.id and address.id=$mail_id   ;")); 
     85 
     86    if(! $db->next_record()){ 
     87        return null; 
     88    } 
     89                $hooks->invoke('hooks_squirrelmail_delete',(array($db->f('address'),$db->f('domaine') )));    
    8390    if(!$db->query("DELETE from  mailbox where address_id=$mail_id;"));      
    8491 
  • alternc/trunk/bureau/class/m_quota.php

    r3135 r3147  
    185185      // Now we check that the value has been written properly :  
    186186      exec("/usr/lib/alternc/quota_get ".$cuid,$a); 
    187         echo "quota get :::::ciud: $cuid :::: size: $size :::: a?: $a "; 
     187        print_r($a); 
    188188    if ($size!=$a[1]) { 
    189189        $err->raise("quota",1); 
  • alternc/trunk/debian/alternc.postinst

    r3145 r3147  
    241241    # Update l18n files 
    242242    /usr/share/alternc/install/dopo.sh 
    243                  
    244                 #sudo stuff allowing alterncpanel to use quota 
     243 
     244          #squirrelmail fix              
     245                chown -R :alterncpanel /var/lib/squirrelmail/data 
     246                chmod -R g+w /var/lib/squirrelmail 
     247                                #sudo stuff allowing alterncpanel to use quota 
    245248                if [ -d /etc/sudoers.d ]; then 
    246249                        cp /etc/alternc/alternc-sudoers /etc/sudoers.d/alternc-sudoers 
     
    250253                        #FIXME 
    251254                        echo "copy content of /usr/share/doc/examples/example.sudoers into /etc/sudoers.d for to run properly" 
    252           fi 
     255         fi 
    253256 
    254257    # important: postinst gele sans ca 
  • alternc/trunk/etc/alternc/postfix.cf

    r3146 r3147  
    2020smtp_tls_dkey_file = $smtpd_tls_dcert_file 
    2121smtp_tls_CApath = $smtpd_tls_CApath 
    22 smtpd_tls_auth_only = yes 
     22smtpd_tls_auth_only = no 
    2323#SASL options 
    2424smtpd_sasl_auth_enable = yes 
  • alternc/trunk/install/alternc.install

    r3146 r3147  
    296296 
    297297# Conviguring delivery used bu Postfix FIXME change script name 
    298 echo `/usr/bin/postfix-add-policy dovecot pipe DRhu vmail:vmail  '/usr/bin/sudo /usr/lib/dovecot/deliver -f ${sender} -d ${recipient} '` 
     298echo `/usr/bin/postfix-add-policy dovecot vmail:vmail DRhu pipe'/usr/bin/sudo /usr/lib/dovecot/deliver -f ${sender} -d ${recipient} '` 
    299299 
    300300# Bug #1215: configure mydestination when $FQDN is not in 
Note: See TracChangeset for help on using the changeset viewer.