Roundcube 的常用 Plugins

最後更新: 2019-08-20

 


透過 composer 安裝 Plugin

 

在 V1.5 之後的 roundcube 要用 composer 安裝 plugin

useradd -d "roundcube-project-root" roundcube

passwd -l roundcube

chown roundcube: "roundcube-project-root" -R

cd "roundcube-project-root"

cp composer.{json-dist,json}

查看有什麼 plugin 可供安裝

https://packagist.org/?type=roundcube-plugin

php composer.phar require roundcube/elastic4mobile:dev-master

詳見: composer

 


elastic4mobile

 

To config roundcube to use Elastic theme when login by mobile device

 * The plugin MUST be put first on the plugins list

 


plugin-installer

 

https://github.com/roundcube/plugin-installer

This installer ensures that plugins and skins end up in the correct directory:

  • Plugins - <roundcube-root>/plugins/plugin-name
  • Skins - <roundcube-root>/skins/skin-name

i.e.

{
    "name": "<your-vendor-name>/<plugin-name>",
    "type": "roundcube-plugin",
    "license": "GPL-3.0-or-later",
    "require": {
        "roundcube/plugin-installer": ">=0.3.0"
    }
}

 


有用的 Plugin

 

  • password (內置)
  • managesieve (內置)
  • show_additional_headers (內置)
  • newmail_notifier (內置)               # desktop notifications (Browser 功能)
  • hide_blockquote  (內置)              #
  • archive (內置)
  • zipdownload (內置)
  • subscriptions_option (內置)
  • markasjunk (內置)
  • emoticons (內置)
  • antiBruteForce (安裝)

 

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

- 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

 


 

Creative Commons license icon Creative Commons license icon