我用hmailServer+roundcube+mysql来搭建邮箱服务器,plugins\中自带的插件password中设置config.inc.php文件来连接mysql,我不会设置,我的问题和此贴的问题一样。
http://topic.csdn.net/u/20100415/11/85fd6beb-2312-44dd-9a5f-bc87bb9929b4.html
希望高手帮忙解决啊。

解决方案 »

  1.   

    我找到解决的方法了。如下:
    HmailServer采用SHA256 加密算法来加密密码,这是 hMailServer 官方推荐的加密算法,所以在加载password插件后把其中的项目改为如下$rcmail_config['password_db_dsn'] = 'mysql://root:password@localhost/hmail';$rcmail_config['password_query'] = 'UPDATE hm_accounts SET accountpassword=md5(%p),accountpwencryption = 2 WHERE accountaddress=%u LIMIT 1';

    插件配置文件是:config.inc.php。搞定了哦,不过改密码后得等几秒才能生效哦。