Roundcube and Plesk 10 integration
Si prefiere leer esta entrada en castellano, pulse aquí.
As mentioned previously, webmails included with Plesk 10 were not to our liking, so when we switched from Plesk 9.5 Windows to Plesk 10.3, we decided to replace them with Roundcube. The problem was that users have missed some functionality available with MailEnable, but we were able to solve by developing plugins or drivers for existing plugins which we want to publish:
|Password change||Driver for Password plugin, which lets users change mailbox password using the CLI utility
|Vacation message||Driver for Vacation plugin, which lets users define an automatic reply to received emails, and optionally, forward emails to third parties, using the CLI utility
|Forward||New plugin, developed from Vacation code, which lets users specify multiple e-mail addresses to which incoming e-mail will be forwarded, using the CLI utility
All developments assume that Roundcube is running on the same server as Plesk, and require execute permissions over CLI utilites for user running Apache. The advantage of call natively Plesk through his CLI is that changes made in the panel are shown in the webmail, and vice versa, in addition to being included in the Plesk backup.
Update 23/12/2011: Changed link for Vacation message to GitHub repository, where latest version should be found, with contributions from other authors.
This entry was posted by Vicente on 26/10/2011 at 11:20, and is filed under Linux, Plesk, Roundcube, Servidores. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site.
Hi, I’m trying to use your created plugin, however “Password change” and “Vacation Message” both only have a plesk.php file inside – which is garbled.
Hi, Chris. You were right. I’ve replaced password_plesk.tar.gz with a new one. My apologies.
Remember that first two are drivers for existing plugins, so is included only one file, but you need to get the plugin first.
Finally, Boris Huisgen has commited my Plesk driver work in his GitHub, so downloading from https://github.com/bhuisgen/rc-vacation you’ll get all you need for Vacation message plugin working.
Thanks – finally got round to integrating – and made a few improvements to your code.
The location of autoresponder on my system is at:
When the reply text was entered over multiple lines, only the first was displayed to the user. Some complicated tinkering was required to check this out, but modifying parse_output to the following has worked.
One last thing that I’m still working on is keeping the angle brackets in the subject – as Plesk auto-fills in the reply as “Re: “, something is stripping it out.
Hope this helps you and others!
Adding in a “true” parameter to allow HTML for the subject in vacation.php fixes the reply subject issue:
Around line 340
Sorry about late feedback. We’re very busy lately.
I’ve updated GitHub with your changes and requested a pull from original author. Thank you!
I don’t know what I’m doing wrong but Password change doesn’t work for plesk 10.4.4. Please advice.
BTW: I don’t have anything in folder opt (CentOS 6)
I think your problem is because we use Ubuntu and you are using CentOS, and paths are different, thus. Try changing them to correct ones. If I remember well,
/usr/local/psa/in your system.
thanks for sharing with us !
Do you have found a workaround to setup an autoresponder with date range in Plesk ?
It seems that plesk doesn’t support start and end dates for vacation …
I’m trying to use your driver for plesk with the password plugin but I have a problem with it. I’m receiving this message in my RoundCube error log every time that I try to change a password:
PHP Error: Password plugin: Broken driver plesk in /var/www/roundcube/plugins/password/password.php on line 264 (POST /?_task=settings&_action=plugin.password-save?_task=&_action=)
Looking on the web, I found some clues about the problem (http://www.roundcubeforum.net/index.php?topic=10044.0) but I don’t know if is the case here (an old version).
So, did you have any clue about what’s happen?
Thank you for your efforts.
Sorry for late response. I’m sorry, but Plesk does not support date range for autoresponders in CLI nor web interface. Nothing to do here.
I’m a bit confused. You’re talking about Plesk, which is the panel this driver is made for, but you provide a link to a driver for cPanel. You are trying to change Plesk passwords, aren’t you?
Is there any script like this to run on Windows Server? i´m looking for the password change script for roundcube on plesk 10 with windows server.
There is CLI available for Plesk 10 for Windows (http://download1.parallels.com/Plesk/PP10/10.0.0/Doc/en-US/online/plesk-win-cli/index.htm?fileName=25742.htm), so it shouldn’t be terribly difficult to adapt current script, but we’ve no news of someone trying to do it at this time.
I run Roundcube 0.9.2 on a 11.5.30 Plesk CentOS 6 server and everything works wonderfully except the vacation plugin.
I have set the driver to ‘plesk’ in config.inc.php ($rcmail_config['vacation_driver'] = ‘plesk’;) but I get a “Connection error” when I click on the Settings -> Autoresponder link.
Any idea ?
I’ve not tested it against Plesk 11, neither in CentOS server. It could be some things, and I have no test machine, so sorry bu I can’t help with this.