最後更新: 2019-08-20
有用的 Plugin
- show_additional_headers (內置)
- subscriptions_option (內置)
- markasjunk (內置)
- newmail_notifier (內置)
- archive (內置)
- antiBruteForce (安裝)
- Password Plugin for Roundcube
- newmail_notifier (內置) # desktop notifications (Browser 功能)
- hide_blockquote (內置) #
antiBruteForce
/usr/share/roundcubemail/logs/userlogins
3 次 login fail 後 ban
emoticons
show_additional_headers
veiw full mail header
archive
設定好 Archive Folder 後,
Menu bar 會多左一個 archive icon.
subscriptions_option
# 限制 webmail 不許用 IMAP 的 Subscriptions 功能
# Plugin Setting $rcmail_config['dont_override'] = array('use_subscriptions'); $rcmail_config['use_subscriptions'] = true;
Password Plugin for Roundcube
- Drivers (Database)
設定:
plugins/password/config.inc.php
$config['password_driver'] = "sql"; $config['password_confirm_current'] = true; $config['password_minimum_length'] = 8; $config['password_require_nonalpha'] = false; $config['password_log'] = true; // Enables saving the new password even if it matches the old password (password 's scheme has changed) $config['password_force_save'] = true; $config['password_db_dsn'] = "mysqli://..."; // %c is replaced with the crypt version of the new password $config['password_query'] = "UPDATE vmail.mailbox SET password=%c,passwordlastchange=NOW() WHERE username=%u LIMIT 1"; // sha256 $config['password_crypt_hash'] = 'md5'; // Dovecot method (dovecotpw -s 'method') $config['password_dovecotpw_method'] = 'CRAM-MD5'; // 不用 {MD5}$1$LUiMYWqx$fEkg/ggr/L6Mb2X7be4i1/ 這格式 $config['password_dovecotpw_with_method'] = false;
設定 roundcube 的 mysql 權限:
GRANT SELECT (`username`), UPDATE (`password` , `passwordlastchange`) ON `vmail`.`mailbox` TO 'roundcube'@'localhost';
Fix: Password 有數字及英文
修改: password.php
preg_match - Searches subject for a match to the regular expression given in pattern.
# 結果要有 False
# 有 0~9 時, 要有符號
(!preg_match("/[0-9]/", $newpwd) || !preg_match("/[^A-Za-z0-9]/", $newpwd))
# 有數字及英文
(!preg_match("/[0-9]/", $newpwd) || !preg_match("/[A-Za-z]/", $newpwd))
UI
更改 localization 內的
zh_CN.inc
zh_TW.inc
en_US.inc
$messages['passwordweak'] = 'Password must ... ';
其他值得去裝的 Plugin
https://code.google.com/p/myroundcube/
另見
http://datahunter.org/roundcube