[sork] passwd 3.0.1 and remote vpopmail server
Jan Schneider
jan at horde.org
Mon Feb 11 23:54:04 UTC 2008
Zitat von Miguel <mmiranda at 123.com.sv>:
> Hi to all, im installing a new webmail server and i cant make passwd to
> work with a remote vpopmail server, passwd was installed in the same
> vpopmail server and it was working flawlessly (i need to migrate the
> webmail service ot a new one because of high load), this is the working
> config
>
> $backends['vpopmail'] = array (
> 'name' => 'Mail Server',
> 'preferred' => true,
> 'password policy' => array(
> 'minLength' => 3,
> 'maxLength' => 8,
> 'maxSpace' => 0,
> 'minUpper' => 0,
> 'minLower' => 0,
> 'minNumeric' => 0
> ),
> 'driver' => 'vpopmail',
> 'params' => array(
> 'phptype' => 'mysql',
> 'hostspec' => 'localhost',
> 'username' => 'vpopmail',
> 'password' => 'vpop4m3',
> 'encryption' => 'crypt-md5',
> 'database' => 'vpopmail',
> 'table' => 'vpopmail',
> 'name' => 'pw_name',
> 'domain' => 'pw_domain',
> 'passwd' => 'pw_passwd',
> 'clear_passwd' => 'pw_clear_passwd',
> 'use_clear_passwd' => true,
> 'show_encryption' => false
> )
>
> Now, in the new server i just change the hostspec param from localhost
> to the remote ip and i got error:
>
> Failure in changing password on Mail Server: Unable to connect to SQL
> server.
>
> If i do a tcp trace, i dont see the query going to
> the vpopmail server, i think passwwd is not obeying the change and is
> still trying to connect to localhost, if i make a manual connection
> using mysql client, i can connect to the remote mysql service
> what can i check?
You can take a look at the _connect() method in
lib/Driver/vpopmail.php and see if the parameters passed to the DB
class are really correct. E.g. put a "var_dump($this->_params);"
before the call.
Jan.
--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
More information about the sork
mailing list