Gestione vacation con Roundcube

From RVM Wiki
Jump to navigation Jump to search

Prerequisiti

  • Installare Roundcube dal sito (quello di debian è vecchio ed i plugin non vanno)

Backend Sieve

Installazione plugin

  • Verificare che il plugin managesieve sia presente
/bin/ls /var/www/roundcube/plugins/managesieve/ -d

/var/www/roundcube/plugins/managesieve/
  • Scaricare il plugin
cd /var/www/roundcube/plugins
sudo wget "http://switch.dl.sourceforge.net/project/rcubevacation/Version%201.9/vacation-1.9.3.zip"
sudo unzip -x vacation-1.9.3.zip
sudo rm vacation-1.9.3.zip
sudo chown -R root:www-data vacation/
sudo chmod -R 644 vacation/
sudo chmod -R a+X vacation/
  • Applicare il patch per sieve:
cd vacation/lib
sudo wget "http://sourceforge.net/tracker/download.php?group_id=275030&atid=1168574&file_id=419067&aid=3375841" -O sieve.class.php
  • Installare la traduzione in Italiano
cd ../localization
sudo wget "http://sourceforge.net/tracker/download.php?group_id=275030&atid=1168574&file_id=365273&aid=2962708" -O it_IT.inc
  • sistemare le permission
cd ..
sudo chown -R root:www-data .
sudo chmod -R 644 .
sudo chmod -R a+X .

Configurazione Plugin

  • Impostare la configurazione per sieve
cat | sudo tee config.ini >/dev/null <<EOFile
;
; Syntax of this file is identical to php.ini where string values need to be quo
; See remarks there.
;
; To overrule the default settings, create a per-host key.
; See examples at the buttom of INSTALL.TXT
;

[default]
driver = "sieve"
defaultsubject = "Out Of Office Notifcation"
defaultbody = "default.txt"
host=localhost
port=2000
EOFile
  • Impostare il testo di default:
cat | sudo tee default.txt >/dev/null <<EOFile
Questa è una risposta Automatica.
I nostri uffici sono chiusi, risponderemo alla Vostra email al nostro rientro.

This is an automatic reply.
Our offices are closed, we will reply to you remail when we get back.
EOFile

Attivazione plugin

sudoedit /var/www/roundcube/config/main.inc.php

$rcmail_config['plugins'] = array('vacation');

=Riferimenti