Monday, February 7, 2022

Roundcube Webmail on Rocky Linux 8.5

 in This Tutorial you will Learn " How To Install Roundcube Webmail with Apache on Rocky Linux 8.5
Roundcube is a web-based IMAP email client.

Roundcube webmail...
...is a browser-based multilingual IMAP client with an application-like user interface. It provides full functionality you expect from an email client, including MIME support, address book, folder manipulation, message searching and spell checking.
Features:-
Drag-&-drop message management
Full support for MIME and HTML messages
Multiple sender identities
Full featured address book with groups and LDAP connectors
Find-as-you-type address book integration
Threaded message listing
IDNA and SMTPUTF8 support
Spell checking
Responsive skin (multi-device support)
Shared/global IMAP folders
Support for access control lists (ACL)
Built-in caching for fast mailbox access
Unlimited users and messages
Import/export functions
Plug-in API for flexible extensions
XSS attack protection
Support for PGP encryption
Homepage - https://roundcube.net/
_______________________________________________________________________________________________________________________
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,pdo,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   
_______________________________________________________________________________________________________________________

No comments:

Post a Comment