Dear all,
I have installed roundcube 0.9.2 on a CentOS 6 Plesk Panel 11.5 server thanks to this brilliant howto (
http://www.gregbeach.ca/how-tos/463-install-roundcube-in-plesk-11-and-centos-6-x.html) but I cannot make the vacation plugin work.
I use the plesk driver developped by Boris Huisgen (
http://sourceforge.net/projects/rcubevacation/?source=dlp) but I get a "Connection error" from the Roundcube web interface when I click on the Responder link.
/etc/sudoers is up to date and I have changed the autoresponder in the plesk.php driver to fit my configuration.
Any idea ?
We use the same installtion...modified for our usage. To get vacation to work, we had to modify the plesk.php driver to fix two functions...
First
function vacation_read(array &$data)
{
$rcmail = rcmail::get_instance();
$email = escapeshellcmd($data['email']);
$cmd = "sudo /usr/local/psa/bin/autoresponder -i -mail $email";
exec($cmd . ' 2>&1', $output, $returnvalue);
AND****
function vacation_write(array &$data)
{
$rcmail = rcmail::get_instance();
$email = escapeshellcmd($data['email']);
if ($data['vacation_enable'])
$status = "true";
else
$status = "false";
$subject = escapeshellcmd($data['vacation_subject']);
if ($rcmail->config->get('vacation_gui_vacationmessage_html'))
{
$format = "html";
$text = str_replace("'", "'", $data['vacation_message']);
}
else
{
$format = "plain";
$text = escapeshellcmd($data['vacation_message']);
}
$redirect = escapeshellcmd($data['vacation_forwarder']);
$cmd = sprintf("sudo /usr/local/psa/bin/autoresponder -u -mail %s -status %s -subject '%s' -text '%s' -format %s -redirect '%s'",
$email, $status, $subject, $text, $format, $redirect);
exec($cmd . ' 2>&1', $output, $returnvalue);
****
Note the sudo being used. We then updated our sudoers to read...
roundcube ALL=NOPASSWD: /usr/local/psa/bin/autoresponder
Roundcube is the user we created. This will vary on your install. If using the Plesk 11.5 version, check who owns the roundube folder.
Cheers!