Roundcube: Difference between revisions

From QmailToaster
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<pre>
EL 8 & 9 should already have at least PHPv8.1 otherwise
EL 8 & 9 should already have at least PHPv8.1 otherwise
  # dnf -y install epel-release
# dnf -y install epel-release
  # dnf config-manager --set-enabled powertools
# dnf config-manager --set-enabled powertools
  # dnf -y install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
# dnf -y install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
  # dnf -y module reset php
# dnf -y module reset php
  # dnf module install php:remi-8.1
# dnf module install php:remi-8.1
  # yum -y install git yum-utils epel-release php-mysql roundcubemail
# yum -y install git yum-utils epel-release php-mysql roundcubemail
  # mysql --defaults-extra-file=$credfile -e "create database roundcube character set utf8 collate utf8_bin"
# mysql --defaults-extra-file=$credfile -e "create database roundcube character set utf8 collate utf8_bin"
  # mysql --defaults-extra-file=$credfile -e "CREATE USER roundcube@localhost IDENTIFIED BY 'p4ssw3rd'"
# mysql --defaults-extra-file=$credfile -e "CREATE USER roundcube@localhost IDENTIFIED BY 'p4ssw3rd'"
  # mysql --defaults-extra-file=$credfile -e "GRANT ALL PRIVILEGES ON roundcube.* TO roundcube@localhost"
# mysql --defaults-extra-file=$credfile -e "GRANT ALL PRIVILEGES ON roundcube.* TO roundcube@localhost"
  # mysql --defaults-extra-file=$credfile roundcube < /usr/share/roundcubemail/SQL/mysql.initial.sql
# mysql --defaults-extra-file=$credfile roundcube < /usr/share/roundcubemail/SQL/mysql.initial.sql
  # cp -p /etc/httpd/conf.d/roundcubemail.conf /etc/httpd/conf.d/roundcubemail.conf.bak
# 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.rhelgt7
# wget -O /etc/roundcubemail/config.inc.php http://www.qmailtoaster.org/rc.default.config.rhelgt7
  # sed -i 's/\;date.timezone.*/date.timezone = "America\/Denver"/' /etc/php.ini | sleep 2 | cat /etc/php.ini | grep date.timezone.*=
# sed -i 's/\;date.timezone.*/date.timezone = "America\/Denver"/' /etc/php.ini | sleep 2 | cat /etc/php.ini | grep date.timezone.*=
  # systemctl restart httpd
# systemctl restart httpd


Access https://my.roundcube.server/email
Access https://my.roundcube.server/email
Add password support
 
Everyone should log out of roundcube before doing the next steps
Add password support (Everyone should logout of roundcube at this point)
Enable vpopmaild
Enable vpopmaild
# wget -O /usr/share/roundcubemail/plugins/password/config.inc.php http://www.qmailtoaster.org/rc.password.config
  # wget -O /usr/share/roundcubemail/plugins/password/config.inc.php http://www.qmailtoaster.org/rc.password.config
Add to config file, run command in red:
  # [ "`grep \'password\', /etc/roundcubemail/config.inc.php`" = "" ] && \
# [ "`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/' \
  perl -ni -le 'BEGIN{ $q=chr(39), $pw="password" } print; print " $q$pw$q," if /$config.*'plugins'.*=.*array/' \
      /etc/roundcubemail/config.inc.php
  /etc/roundcubemail/config.inc.php
 
Add Carddav
Add Carddav (Everyone should logout of roundcube at this point)
Everyone should log out of roundcube before doing the next steps
  # cd /usr/share/roundcubemail/plugins
otherwise they'll have to clear their browser cache in order not
  # git clone https://github.com/blind-coder/rcmcarddav carddav
to get a database error. You may have to do this anyway.
  # cd carddav
# cd /usr/share/roundcubemail/plugins
  # curl -sS https://getcomposer.org/installer | php
# git clone https://github.com/blind-coder/rcmcarddav carddav
  # php composer.phar install
# cd carddav
  # [ "`grep \'carddav\', /etc/roundcubemail/config.inc.php`" = "" ] && \
# curl -sS https://getcomposer.org/installer | php
# php composer.phar install
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/' \
   perl -ni -le 'BEGIN{ $q=chr(39), $cd="carddav" } print; print " $q$cd$q," if /$config.*'plugins'.*=.*array/' \
   /etc/roundcubemail/config.inc.php
   /etc/roundcubemail/config.inc.php

Revision as of 14:25, 27 March 2024

EL 8 & 9 should already have at least PHPv8.1 otherwise
 # dnf -y install epel-release
 # dnf config-manager --set-enabled powertools
 # dnf -y install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
 # dnf -y module reset php
 # dnf module install php:remi-8.1
 # yum -y install git yum-utils epel-release php-mysql roundcubemail
 # mysql --defaults-extra-file=$credfile -e "create database roundcube character set utf8 collate utf8_bin"
 # mysql --defaults-extra-file=$credfile -e "CREATE USER roundcube@localhost IDENTIFIED BY 'p4ssw3rd'"
 # mysql --defaults-extra-file=$credfile -e "GRANT ALL PRIVILEGES ON roundcube.* TO roundcube@localhost"
 # mysql --defaults-extra-file=$credfile roundcube < /usr/share/roundcubemail/SQL/mysql.initial.sql
 # 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.rhelgt7
 # sed -i 's/\;date.timezone.*/date.timezone = "America\/Denver"/' /etc/php.ini | sleep 2 | cat /etc/php.ini | grep date.timezone.*=
 # systemctl restart httpd
Access https://my.roundcube.server/email
Add password support (Everyone should logout of roundcube at this point)
Enable vpopmaild
 # wget -O /usr/share/roundcubemail/plugins/password/config.inc.php http://www.qmailtoaster.org/rc.password.config
 # [ "`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
Add Carddav (Everyone should logout of roundcube at this point)
 # cd /usr/share/roundcubemail/plugins
 # git clone https://github.com/blind-coder/rcmcarddav carddav
 # cd carddav
 # curl -sS https://getcomposer.org/installer | php
 # php composer.phar install
 # [ "`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

2-Factor Authentication Roundcubemail <= 1.4.13 (RHEL7) php >= 7.4 Github Roundcubemail > 1.4.13 (RHEL8) php >= 7.4 Github