Abilitazione del modulo cambio password in Horde per Postfixadmin

From RVM Wiki
Revision as of 16:59, 10 July 2014 by Gabriele.vivinetto (talk | contribs) (Created page with "* Verificare di aver installato il modulo passwd sudo /var/www/horde/pear/pear -c /var/www/horde/pear.conf install -a -B horde/passwd * Creare il file di configurazione cust...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  • Verificare di aver installato il modulo passwd
sudo /var/www/horde/pear/pear -c /var/www/horde/pear.conf install -a -B horde/passwd
  • Creare il file di configurazione custom, copiando la sezione template da backends.php
sudoedit /var/www/horde/passwd/config/backends.local.php
  // This is an example configuration for Postfix.admin 2.3.                            
  // Set the 'password_policy' section as you wish.                                     
  // In most installations you probably only need to change the                         
  // hostspec and/or  password fields.                                                  
  $backends['postfixadmin'] = array(                                                    
      'disabled' => false,
      'name' => 'Postfix Admin server',                                                 
      'driver' => 'Sql',                                                                
      'policy' => array(                                                                
          'minLength' => 6,                                                             
          'maxLength' => 20,                                                            
          'minNumeric' => 1,                                                            
      ),                                                                                
      'params' => array(                                                                
          'phptype' => 'mysql',                                                         
          'hostspec' => 'localhost',                                                    
          'username' => 'postfixadmin',
          'password' => 'secretpassword',
          'encryption' => 'crypt-md5',                                                  
          'database' => 'postfix',                                                      
          'table' => 'mailbox',                                                         
          'user_col' => 'username',                                                     
          'pass_col' => 'password',                                                     
          'show_encryption' => false,                                                   
          // The following two settings allow you to specify custom queries for
          // lookup and modify functions if special functions need to be                
          // performed.  In places where a username or a password needs to be           
          // used, refer to this placeholder reference:                                 
          //    %d -> gets substituted with the domain
          //    %u -> gets substituted with the user
          //    %U -> gets substituted with the user without a domain part              
          //    %p -> gets substituted with the plaintext password
          //    %e -> gets substituted with the encrypted password
          //
          'query_lookup' => 'SELECT password FROM mailbox WHERE username = %u and active = 1',
          'query_modify' => 'UPDATE mailbox SET password = %e WHERE username = %u'
      ),
  );
  • Loggarsi con un utente di test: la funzionalità sarà presente in
Other->My Account->Password