Archive

文章標籤 ‘roundcube’

推一下 RoundCube WebMail Password Plugin

2009年9月11日 尚無評論

這一篇是記錄一下當 Mail Server 是採用 postfix + mysql 認證時 , 如何設定 RoundCube 的改密碼 plugin

平台是 CentOS 5.3 + mysql 5.1 + postfix_mysql + roundcube 0.3 stable

設定方法很簡單

先找到 roundcube 安裝目錄下的 plugins/password 這個目錄

把 config.inc.php.dist 改成 config.inc.php 或用複製成另一個新檔都可以 , 然後要修改 config.inc.php

我們必須先修改以下三個參數

  • $rcmail_config['password_driver'] : 這個是設定密碼密碼認證的方式
  • $rcmail_config['password_db_dsn']  : 這個是設定 posftix 認證的資料庫連接資訊(注意!不是roundcube資料庫喔)
  • $rcmail_config['password_query'] : 這是設定修改密碼的 SQL Query

$rcmail_config['password_driver'] 必須設定為 sql , 才適用 mysql 的方式 , 例如

$rcmail_config['password_driver'] = 'sql';

$rcmail_config['password_db_dsn'] 的格式是 PEAR DSN 的格式 , 例如

$rcmail_config['password_db_dsn'] = 'mysql://postfix:1234@localhost/postfix';

閱讀全文…

Categories: Linux, MySQL, PHP Tags: , ,