1. Upgrade PHP 5.x to 7.x
  2. # yum -y install git yum-utils epel-release php-mysql roundcubemail
  3. # echo "create database roundcube character set utf8 collate utf8_bin" | mysql -uroot -p
  4. # echo "GRANT ALL ON roundcube.* TO roundcube@localhost IDENTIFIED BY 'p4ssw3rd'" | mysql -uroot -p
  5. # mysql -uroot -p roundcube < /usr/share/roundcubemail/SQL/mysql.initial.sql
  6. # cp -p /etc/httpd/conf.d/roundcubemail.conf /etc/httpd/conf.d/roundcubemail.conf.bak && \
    wget -O /etc/roundcubemail/config.inc.php http://www.qmailtoaster.org/rc.default.config && \
    wget -O /etc/httpd/conf.d/roundcubemail.conf http://www.qmailtoaster.org/rc.httpd.config
  7. Change 'date.timezone' in '/etc/php.ini', e.g., date.timezone = "America/Denver"
  8. # systemctl restart httpd
  9. Access https://my.roundcube.server/email
  10. Add password support
    1. Everyone should log out of roundcube before doing the next steps
    2. Enable vpopmaild
    3. # wget -O /usr/share/roundcubemail/plugins/password/config.inc.php http://www.qmailtoaster.org/rc.password.config
    4. Add to config file, run command in red:
      # [ "`grep \'password\', /etc/roundcubemail/config.inc.php`" = "" ] && \
      perl -ni -le 'BEGIN{ $q=chr(39), $pw="password" } print; print " $q$pw$q," if /$config.*'plugins'.*=.*array/' \
      /etc/roundcubemail/config.inc.php
  11. Add Carddav
    1. Everyone should log out of roundcube before doing the next steps
      otherwise they'll have to clear their browser cache in order not
      to get a database error. You may have to do this anyway.
    2. cd /usr/share/roundcubemail/plugins
    3. git clone https://github.com/blind-coder/rcmcarddav carddav
    4. cd carddav
    5. curl -sS https://getcomposer.org/installer | php
    6. php composer.phar install
    7. Add to config file, run command in red::
      # [ "`grep \'carddav\', /etc/roundcubemail/config.inc.php`" = "" ] && \
      perl -ni -le 'BEGIN{ $q=chr(39), $cd="carddav" } print; print " $q$cd$q," if /$config.*'plugins'.*=.*array/' \
      /etc/roundcubemail/config.inc.php
  12. 2-Factor Authentication
    1. Roundcubemail <= 1.4.13 (RHEL7) php >= 7.4 Github
    2. Roundcubemail > 1.4.13 (RHEL8) php >= 7.4 Github