在Debian 10上安装ISPConfig 3-Roundcube插件

ispconfig3_roundcube插件整合了你在Roundcube中的ISPConfig邮件账户设置。在本教程中,我将带你通过安装它们的过程。
先决条件
Roundcube必须使用apt安装。如果不是,您可能需要更改本教程中使用的文件路径。
确保你的ISPConfig和Roundcube安装是最新的。
添加远程用户
ISPConfig 3插件使用API连接到您的系统。因此,我们需要在控制面板中创建一个远程用户。
登录到你的面板,进入系统(System )-> (Remote Users)远程用户,然后点击"Add new remote user",添加新的远程用户。在表格中,给你的新用户一个名字和密码。我将使用rc-example和密码examplepass。不要使用相同的凭证,而是创建你自己的凭证。我的示例面板将位于https://panel.example.com:8080,并有一个有效的SSL证书。
为您的远程用户启用以下功能。
客户端功能
服务器功能
邮件用户功能
邮件用户过滤功能
邮件别名功能
邮件转发功能
邮件取信功能
邮件垃圾邮件过滤器用户功能
邮件垃圾邮件过滤策略功能
邮件垃圾过滤器白名单功能
邮件垃圾过滤器黑名单功能
并为你的webmail服务器的IPv4和IPv6地址启用远程访问。
下载插件
运行以下命令:
cd /tmp
wget https://github.com/w2c/ispconfig3_roundcube/archive/master.zip
unzip master.zip
cd ./ispconfig3_roundcube-master
cp -r ./ispconfig3_* /usr/share/roundcube/plugins
ln -s /usr/share/roundcube/plugins/ispconfig* /var/lib/roundcube/plugins/
现在,插件已经在正确的文件夹中,并有一个来自 /var/lib/roundcube/plugins 的符号链接。下一步是配置它们来使用我们的远程用户。运行这个来复制和编辑示例配置:
cp /usr/share/roundcube/plugins/ispconfig3_account/config/config.inc.php.dist /usr/share/roundcube/plugins/ispconfig3_account/config/config.inc.php
nano /usr/share/roundcube/plugins/ispconfig3_account/config/config.inc.php
你会看到这个配置文件:
$config['identity_limit'] = false;
$config['remote_soap_user'] = '{REMOTE USERNAME}';
$config['remote_soap_pass'] = '{REMOTE PASSWORD}';
$config['soap_url'] = 'https://{YOUR SERVER}:8080/remote/';
$config['soap_validate_cert'] = true;
根据自己的实际情况修改配置文件,主要是第二行和第三行的帐号和密码,第四行的URL地址。如果你使用https但没有安装可信的SSL证书,请将第五行的soap_validate_cert改为false。
启用插件
要启用插件,打开圆管配置:
nano /etc/roundcube/config.inc.php
并搜索这些行:
// List of active plugins (in plugins/ directory)
$config['plugins'] = array();
要启用插件,请在括号中添加以下内容:
"jqueryui", "ispconfig3_account", "ispconfig3_autoreply", "ispconfig3_pass", "ispconfig3_spam", "ispconfig3_fetchmail", "ispconfig3_filter", "ispconfig3_forward", "ispconfig3_wblist"
修改后应该如下:
// List of active plugins (in plugins/ directory)
$config['plugins'] = array("jqueryui", "ispconfig3_account", "ispconfig3_autoreply", "ispconfig3_pass", "ispconfig3_spam", "ispconfig3_fetchmail", "ispconfig3_filter", "ispconfig3_forward", "ispconfig3_wblist");
对此有几点注意:
jqueryui插件必须放在其他插件的前面。
如果你不想使用某个插件,比如fetchmail插件,就不要把ispconfig3_fetchmail放在前面。
如果你使用了多个邮件服务器,请将 ispconfig3_autoselect 添加到列表中,并将 $config['default_host']留空, ispconfig3_autoselect 会自动为登录的用户选择合适的服务器。你可以在 ispconfig3_autoselect/config/config.inc.php.dist 中编辑它自己的配置文件来启用圆管和外部邮件服务器之间的 tls/ssl 连接。
保存配置文件后,在webmail设置中会出现一个新的标签"账户"。
至此,全部设置就已经完成了。A5互联https://www.a5idc.net/

原文地址:https://www.cnblogs.com/a5idc/p/13757288.html