Add RoundCube to old perfect-install

Discussion in 'HOWTO-Related Questions' started by Nap, Mar 8, 2020.

  1. Nap

    Nap Member

    When I setup my server, roundcube wasn't available as a standard part of the perfect-install, so I still have squirrelmail. Now that I've upgraded to U16, I would like to install RoundCube, but since I run my own mail server, I would like to read about what needs to be done before I jump into it.

    I've searched the tutorials here, but haven't been able to find much info on how to do this with Ubuntu 16, postfix, dovecot, etc. Could some please post a link that discusses how to set it up using postfix/dovecot?

    I am still using ISPConfig 3.0.5.4p8 as I've made numerous changes to my install and implemented my own Let's Encrypt module (before it was officially included into ISPConfig). I will upgrade to the latest version sometime soon, but not just yet.
     
  2. nhybgtvfr

    nhybgtvfr Active Member

    you can install roundcube using these instructions:
    https://www.howtoforge.com/tutorial...pureftpd-bind-postfix-doveot-and-ispconfig/3/

    and install the roundcube plugins to connect it with ispconfig, using these instructions:
    https://github.com/w2c/ispconfig3_roundcube/wiki/Installation


    ubuntu 16 is still very old, almost obsolete in server terms. especially considering 20.04 is out next month. I understand you have made changes to the install that you're worried about, I would suggest you download a beta/rc version of 20.04 and the latest ispconfig and start testing with that. get that working properly how you need it, and test migrating from your old servers to those.
    then once it's publicly released and there's official ispconfig support of 20.04, you can go straight to a clean install of the latest of everything, and just migrate the client data/sites.
     
    Nap and Steini86 like this.
  3. Steini86

    Steini86 Active Member

    Considering that the roundcube package in 16.04 installs Roundcube 1.2, I would suggest to install it manually.
    Just create a web like mail.yourdomain.com and install it like any other web service. In the end it is just an IMAP client which can be installed anywhere.
    See official documentation: https://github.com/roundcube/roundcubemail/wiki/Installation
     
    Nap likes this.
  4. nhybgtvfr

    nhybgtvfr Active Member

    or you could just install roundcube as normal using the repo's like in the tutorial, and then upgrade to the latest version, then everything's in the usual expected locations, and the /webmail extension can be applied in the control panel interface without any further changes.
    Code:
    cd ~
    wget https://github.com/roundcube/roundcubemail/releases/download/1.4.3/roundcubemail-1.4.3-complete.tar.gz
    tar -xvf roundcubemail-1.4.3-complete.tar.gz
    cd roundcubemail-1.4.3
    mkdir /usr/share/roundcube/config
    ./bin/installto.sh /usr/share/roundcube
    cd /usr/share/roundcube
    chown -R root:root  *
                                                                                                                                                                                                                       checking with a browser  http://ip/roundcube/installer that all requirements are met threw up a few issues.                                                                                                      
    firstly to  make sure that that url is  reachable
    cd /var/lib/roundcube
    ln -s /usr/share/roundcube/installer installer
    
    according to the installer page, the 3rd party libs net_IDNA2 and Net_LDAP3 are required, so:
    apt-get install php-net-idna2
    apt-get install php-net-ldap3
    *I only used the installer to check all the pre-requisites exist, not to install/configure it, you don't need to continue with the roundcube installer.
    
    to enable the elastic skin:
    cd /var/lib/roundcube/skins
    ln -s /usr/share/roundcube/skins/elastic elastic
    
    edit /etc/roundcube/config.inc.php
    change line  80 to: $config['skin'] = 'elastic';
    
    cd ~
    wget https://github.com/roundcube/roundcubemail/releases/download/1.4.1/roundcubemail-1.4.1-complete.tar.gz
    tar -xvf roundcubemail-1.4.1-complete.tar.gz
    cd roundcubemail-1.4.1
    mkdir /usr/share/roundcube/config
    ./bin/installto.sh /usr/share/roundcube
    cd /usr/share/roundcube
    chown -R root:root  *
                                                                                                                                                                                                                       checking with a browser  http://ip/roundcube/installer that all requirements are met threw up a few issues.                                                                                                      
    firstly to  make sure that that url is  reachable
    cd /var/lib/roundcube
    ln -s /usr/share/roundcube/installer installer
    
    according to the installer page, the 3rd party libs net_IDNA2 and Net_LDAP3 are required, so:
    apt-get install php-net-idna2
    apt-get install php-net-ldap3
    
    *I only used the installer to check all the pre-requisites exist, not to install/configure it, you don't need to continue with the roundcube installer.
    
    to enable the elastic skin:
    cd /var/lib/roundcube/skins
    ln -s /usr/share/roundcube/skins/elastic elastic
    
    edit /etc/roundcube/config.inc.php
    change line  80 to: $config['skin'] = 'elastic';
    
    
    if you haven't already, install the ispconfig3 plugins for roundcube, as per instructions here: https://github.com/w2c/ispconfig3_roundcube/wiki/Installation
    
    cd /var/lib/roundcube/plugins
    ln -s /usr/share/roundcube/plugins/ispconfig3_account ispconfig3_account
    ln -s /usr/share/roundcube/plugins/ispconfig3_autoreply ispconfig3_autoreply
    ln -s /usr/share/roundcube/plugins/ispconfig3_autoselect ispconfig3_autoselect
    ln -s /usr/share/roundcube/plugins/ispconfig3_fetchmail ispconfig3_fetchmail
    ln -s /usr/share/roundcube/plugins/ispconfig3_filter ispconfig3_filter
    ln -s /usr/share/roundcube/plugins/ispconfig3_forward ispconfig3_forward
    ln -s /usr/share/roundcube/plugins/ispconfig3_pass ispconfig3_pass
    ln -s /usr/share/roundcube/plugins/ispconfig3_spam ispconfig3_spam
    ln -s /usr/share/roundcube/plugins/ispconfig3_wblist ispconfig3_wblist
     
    Trix likes this.

Share This Page