RoundCube Webmail Forum  

Go Back   RoundCube Webmail Forum > Third Party Contributions > API Based Plugins

For more information about the ads and why they're here, please see the FAQ

Reply
  #11  
Old 09-24-2009, 12:05 AM
Registered User
 
Join Date: Dec 2007
Posts: 23
Default

I downloaded the latest version, but cannot determine how the driver needs to be modified.

Is there any documentation on modifying the drivers for the new plug-ins? I don't see anything on the repository.

One of the mods required with the RC .2XX version was to change the path for cpanel, depending on:

var $path = "webmail/x3/mail";

to point to the proper directory.

I assume this has to be done with

$rcmail_config['setuid']['setuid_executable'] = '/usr/bin/squirrel_stuff';

but I am stuck.

Can anyone share their success with this plug-in and cpanel?

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12  
Old 09-30-2009, 01:02 PM
Registered User
 
Join Date: Sep 2009
Posts: 10
Default

Hi Blair,

I have missed your reply, so my apologies for the late reaction.

You have at the moment three ways to get the vacation reply to work:

1) FTP. The .vacation.msg and .forward are uploaded using FTP to the homedirectory. Use this if you have system users.

2) setuid. A special application (setuid bit set) places the .forward and .vacation.msg in the homedirectory of a system user. Use this if you don't have an FTP-server.

3) SQL. The vacation message and the aliases for that to work are stored in an database. Use this if you have virtual users and virtual domains.

Version 1.6.2 has an updated setuid driver, config.inc.php etc.

The squirrelmail_vacation_proxy can be found in the extra/ dir but needs to be recompiled if your Apache user is not 'Apache'. That's a hardcoded setting for extra security.

So if you tell me which driver you intend to use, I can help you out.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13  
Old 11-02-2009, 01:00 AM
Registered User
 
Join Date: Jan 2007
Posts: 5
Default PHP Fatal error: Call to undefined function sys_get_temp_dir()

Hi,

Thanks for this great plugin. I found an issue running on Debian Etch. Maybe a depreciated error.

I get his in the logs:

PHP Fatal error: Call to undefined function sys_get_temp_dir()

I found this with some googling:

https://trac.usvn.info/ticket/364
"The function is only available in PHP 5.2.1. I will backport the function. "

And this is what I am running:

ii php5 5.2.0+dfsg-8+etch15

So that explains it. I will try and edit that line to a hard set "/tmp" maybe. See how we go..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14  
Old 11-02-2009, 01:00 AM
Registered User
 
Join Date: Jan 2007
Posts: 5
Default

Oh the full error line is:

PHP Fatal error: Call to undefined function sys_get_temp_dir() in /var/www/roundcubemail-0.3.1/plugins/vacation/lib/setuid.class.php on line 137
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15  
Old 11-02-2009, 09:57 AM
Registered User
 
Join Date: Sep 2009
Posts: 10
Default

Hi,

The page at

Howto_Requirements ? Roundcube Webmail lists PHP 5.2.1 as a requirement for deploying Roundcube.

But the workaround should be fine or you can mimick the behaviour of the missing function by returning /tmp.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #16  
Old 12-06-2009, 10:40 PM
Registered User
 
Join Date: Nov 2009
Posts: 37
Default

I cant seem to get this to work either. Im using cpanel too. I think I am doing something wrong. Im getting a 600 error too. should I leave the driver as setuid? or change this? Also am I suppose to create tables in my database and if so how many fields should they have?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17  
Old 12-18-2009, 05:59 PM
Registered User
 
Join Date: Dec 2009
Posts: 1
Default

Hi,
I install plugin vacation-1.6.3.tar.gz with setuid mode for roundcube;

PHP Code:
$rcmail_config['driver'] = 'setuid';
$rcmail_config['setuid']['setuid_executable'] = '/usr/bin/squirrelmail_vacation_proxy';
$rcmail_config['setuid']['vacation_executable'] = '/usr/bin/vacation';
$rcmail_config['setuid']['vacation_flags'] = ''// See man vacation for valid flags
$rcmail_config['setuid']['vacation_message'] = '.vacation.msg';
$rcmail_config['setuid']['vacation_database'] = '.vacation.db';
$rcmail_config['setuid']['always_keep_message'] = true
I compiled vacation-1.2.7.0 binary from linux (from here) and run it.

I copy the binary extra/vacation_binary/squirrelmail_vacation_proxy to /usr/bin/squirrelmail_vacation_proxy

In the logs I see no error, but the auto-reply messages are not saved.

Any ideas?

My contribution vacation/localization/es_ES.inc ;
PHP Code:
<?php
$labels 
= array();
$labels['vacation'] = 'Vacaciones';
$labels['autoreply'] = "Activar autorepuesta";
$labels['outofoffice'] = 'Configuracion del mensaje';
$labels['autoreplysubject'] = 'Asunto';
$labels['autoreplymessage'] = 'Mensaje';
$labels['autoreplybutton'] = 'Guardar';
$labels['mailforward'] = 'Reenvio de correo';
$labels['keepcopy'] = 'Mantener una copia del email';
$labels['forwardingaddresses'] = 'Reenviar al email';
$labels['forward'] = 'Configuracion de reenvio';
$labels['success_changed'] = 'Configuracion guardada';
$labels['failed'] = 'Configuracion erronea!'
?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #18  
Old 03-04-2010, 07:28 PM
Registered User
 
Join Date: Sep 2009
Posts: 10
Default

Hi,

Perhaps a lame kick but the out of office / vacation plugin for Roundcube has quite a lot of bugfixes and improvements in error handling of the last releases.

If you still intend to use the plugin, vacation plugin 1.9.2 for Roundcube has just been released.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #19  
Old 03-04-2010, 08:34 PM
ABerglund's Avatar
Registered User
 
Join Date: Sep 2007
Location: Eugene, Oregon, USA
Posts: 142
Default

Our organization does not allow a user to set up their own forwards, due to archiving and retention policies. I was able to disable that ability in the older version I am now using. I don't see an easy way to disable forwards in this new version. Please consider adding that capability.
__________________
Arne Berglund
SysAdmin, Internet Services
Lane Education Service District
Eugene, OR, USA
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #20  
Old 03-04-2010, 09:32 PM
Registered User
 
Join Date: Sep 2009
Posts: 10
Default

Quote:
Originally Posted by ABerglund View Post
Our organization does not allow a user to set up their own forwards, due to archiving and retention policies. I was able to disable that ability in the older version I am now using. I don't see an easy way to disable forwards in this new version. Please consider adding that capability.
Ok, that should be fairly easy to accomplish,i'll add a config option for config.ini

But for now you can disable the forwards by commenting the lines in vacation.php, around line 165 and line 174. Please let me know if that works out for you.

How did you previously disable the forwards?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


LinkBacks (?)
LinkBack to this Thread: http://www.roundcubeforum.net/7-third-party-contributions/46-api-based-plugins/4989-roundcube-vacation-plugin.html
Posted By For Type Date
Roundcube: the world's coolest Open Source webmail project? : linux This thread Refback 12-28-2009 07:43 AM
Roundcube webmail – Auto reply plugin ? Peter Ruiter This thread Refback 12-22-2009 08:16 PM
overview for subcultured This thread Refback 12-17-2009 08:32 PM

Currently Active Users Viewing This Thread: 2 (1 members and 1 guests)
sanderss
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 09:10 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Copyright © 2006-2008 RoundCube Webmail Community