Roundcube Webmail on Rocky Linux 8.
5
____________________________________________________________________________
_______________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.60 |Hostname -
server.yourdomain.com
____________________________________________________________________________
___________________________________________
cat /etc/system-release ; hostname ; hostname -I ; sestatus ; dnf groupinstall "Development
Tools" -y
dnf module reset php ; dnf -y module install php:7.4
dnf install -y httpd mariadb mariadb-server php php-
{bz2,mysqli,curl,gd,intl,common,mbstring,xml,json,bcmath,pear,xmlrpc,snmp,cli,ldap,opcache,p
do,pear,devel}
systemctl enable httpd mariadb ; systemctl start httpd mariadb
mysql_secure_installation
mkdir -p /var/www/yourdomain.com/public_html ; chown -R $USER:$USER
/var/www/yourdomain.com ; chmod -R 777 /var/www/*
wget https://github.com/roundcube/roundcubemail/releases/download/1.4.13/roundcubemail-
1.4.13-complete.tar.gz
tar -xvzf roundcubemail-1.4.13-complete.tar.gz
mv roundcubemail-1.4.13 /var/www/yourdomain.com/public_html
mysql -u dbuser -p db < /var/www/yourdomain.com/public_html/roundcubemail-
1.4.13/SQL/mysql.initial.sql
mysql -u root -p
CREATE DATABASE db;
CREATE USER `dbuser`@`localhost` IDENTIFIED BY 'dbpassword';
GRANT ALL ON db.* TO `dbuser`@`localhost`;
FLUSH PRIVILEGES;
exit
nano /etc/httpd/conf.d/yourdomain.com.conf
<VirtualHost *:80>
ServerName yourdomain.com
ServerAlias www.yourdomain.com
DocumentRoot /var/www/yourdomain.com/public_html/roundcubemail-1.4.13/
<Directory /var/www/yourdomain.com/public_html/roundcubemail-1.4.13/>
Options -Indexes +FollowSymLinks
AllowOverride All
</Directory>
ErrorLog /var/log/httpd/yourdomain.com-error.log
CustomLog /var/log/httpd/yourdomain.com-access.log combined
</VirtualHost>
apachectl configtest
echo "192.168.1.60 www.yourdomain.com" >> /etc/hosts ; firewall-cmd --permanent --add-
service={http,https} ; firewall-cmd --reload
mv /etc/httpd/conf.d/welcome.conf /etc/httpd/conf.d/welcome.conf_backup ; systemctl restart
httpd ; systemctl status httpd
www.yourdomain.com/installer
Google IMAP setting :
ssl://imap.gmail.com | Default port:993
SMTP setting:
ssl://smtp.gmail.com | Smtp Port: 465
SMTP Username: (your Gmail username) | SMTP Password: (your Gmail password)
Enable Gmail IMAP Settings -
Settings > Forwarding and POP/IMAP - Enable IMAP
Enable Less Secure Apps to Access Gmail Accounts - Allow less secure apps: ON