Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 31st October 2011, 14:23
clixclix clixclix is offline
Junior Member
 
Join Date: Sep 2009
Location: Italy, Rome
Posts: 15
Thanks: 3
Thanked 4 Times in 2 Posts
Default RoundCube 0.6 on IspConfig 2

Hi everybody,

if you wish to install by yourself RoundCube 0.6 on an IspConfig 2 server, after you downloaded, unzipped and installed RoundCube (or upgraded from version < 0.6) remember to perform the next modifications on the file config/main.inc.php file:

1) Modify the line:
Code:
$rcmail_config['plugins'] = array('new_user_identity', 'virtuser_file');
(Before RoundCube 0.6, the 'virtuser_file' plugin didn't have to be activated explicitly)

2) Add the line:
Code:
$rcmail_config['virtuser_file'] = '/etc/postfix/virtusertable';
(/etc/postfix/virtusertable is kept up by IspConfig2)


I hope this can help other people to save time during RoundCube setup.
Reply With Quote
The Following 2 Users Say Thank You to clixclix For This Useful Post:
falko (1st November 2011), madmucho (11th January 2012)
Sponsored Links
  #2  
Old 11th January 2012, 12:28
madmucho madmucho is offline
Senior Member
 
Join Date: Oct 2006
Location: Czech republic, Karlovy Vary
Posts: 158
Thanks: 79
Thanked 11 Times in 11 Posts
Send a message via ICQ to madmucho
Default 0.7 too

This settings works for me thank You, also working on 0.7 version
Reply With Quote
  #3  
Old 8th August 2012, 20:27
jortega jortega is offline
Junior Member
 
Join Date: Apr 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Probably this is pretty gross hacking, but works fine in ispconfig 2.

To use roundcube 0.8 with ispconfig, and to be able to use the email for login, a simple modification is required in the ../plugins/virtuser_file/virtuser_file.php

I'll show the entire function to look for, and the change is commented. Is a one line addition that checks for the prefix web[number]_ (example "web9_") and any mail containing someone@www.somedomain.tld.

Now the only thing that we need is a way to access the user's names as appears in ispconfig to make this thing work automagically (without the need to change the webx_user to the real name manually inside roundcube). Any ideas??

Code:
 
private function findinvirtual($pattern)
    {
            $result = array();
            $virtual = null;

            if ($this->file)
                $virtual = file($this->file);

            if (empty($virtual))
                return $result;

            // check each line for matches
            foreach ($virtual as $line) {
                $line = trim($line);
                if (empty($line) || $line[0]=='#')
                    continue;

                if (preg_match($pattern, $line))
                        {
                                // hack to make any webx_ prefix and www. prefix from virtusertable
                                if ((preg_match ('/^web\d+_/i', $line)) OR (stripos($line, 'www.')>0)) continue;                                // end hack
                                $result[] = $line;
                        }
            }

            return $result;
    }

}
Reply With Quote
Reply

Bookmarks

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Migrating to ISPConfig - step by step (postfixadmin + Anti-Spam-Solution + roundcube) osterhase Installation/Configuration 2 30th July 2011 20:10
RoundCube & ISPConfig vaio1 Installation/Configuration 4 21st February 2011 12:40
ISPConfig 3.0.0.8 RC1 released till General 92 22nd February 2010 09:52
security patch for RoundCube 0.2 Beta for ISPCOnfig 2 Hans General 2 3rd January 2009 10:12
Getting RoundCube to work in ISPConfig networkguru00 Installation/Configuration 1 7th April 2006 23:59


All times are GMT +2. The time now is 20:20.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.