next up previous contents
Next: fetchmail Plugin Up: Roundcube Webmail Previous: Spell check   Contents

fetchmail-rc Plugin

  1. 從 GitHub 下載原始碼。
    https://github.com/iabsis/roundcube-fetchmail-rc
    
  2. 必須安裝 fetchmail 套件。
    [root@mail ~]# yum install fetchmail
    
  3. 解壓縮至 roundcubemail 插件目錄 plugins。
    [root@mail ~]# cd /usr/share/roundcubemail/plugins/
    [root@mail plugins]# unzip roundcube-fetchmail-rc-master.zip
    
  4. 解壓縮的目錄為 roundcube-fetchmail-rc-master 與插件主 php 檔 fetchmail_rc.php 及 class 名稱不同,必須改成 fetchmail_rc
    [root@mail plugins]# ls roundcube-fetchmail-rc-master
    bash_cron.php    fetchmail_rc.php  localization                   skins
    config.inc.php   includes          README.md                      SQL
    fetchmail_rc.js  INSTALL           roundcube-fetchmail-rc-master
    
    [root@mail plugins]# mv roundcube-fetchmail-rc-master fetchmail_rc
    
  5. roundcubemail 啟動 fetchmail_rc 插件。
    [root@mail plugins]# vim /etc/roundcubemail/config.inc.php
    [root@mail plugins]# grep fetchmail_rc /etc/roundcubemail/config.inc.php
    $config['plugins'] = array('fetchmail_rc',# 'pop3fetcher',
    
  6. 設定每 5 分鐘收信一次。
    [root@mail plugins]# echo '*/5 * * * * root /usr/share/roundcubemail/\
    plugins/fetchmail_rc/bash_cron.php' >> /etc/cron.d/fetchmail
    
    [root@mail plugins]# chmod a+x /usr/share/roundcubemail/plugins/\
    fetchmail_rc/bash_cron.php
    



2018-01-11