Hướng dẫn cài đặt roundcube centos 7 năm 2024
Roundcube webmail là chương trình gửi/nhận email (áp dụng cho email theo tên miền riêng) phổ biến và dễ dàng sử dụng nhất hiện nay.1. Đăng nhập email Show Để đăng nhập vào phần sử dụng email, bạn truy cập vào đường dẫn sau: http://webmail.tenmiencuaban Sau đó, bạn đăng nhập với email dạng tenemail@tenmiencuaban và mật khẩu đã được cung cấp từ trước. 2. Giao diện của email Sau khi đăng nhập thành công sẽ vào giao diện chính. VietISO sử dụng chương trình RoundCube để giúp người dùng quản lý và sử dụng dịch vụ mail một cách hiệu quả nhất, đây là chương trình có giao diện thân thiện, dễ sử dụng, phù hợp với đại đa số người dùng. Tại giao diện chính có các công cụ cơ bản để có thể giao dịch email:
3. Gửi mail
4. Các thao tác khác Ngoài ra còn có một số thao tác cơ bản khác như xóa mail, đánh dấu mail, Forward, Reply… cũng được thể hiện trực quan bằng các nút công cụ. 5. Quản lý địa chỉ
6. Settings
Ngoài ra còn rất nhiều tùy chỉnh cá nhân khác để phù hợp với nhu cầu của đại đa số người dùng, bạn có thể tham khảo thêm ở các mục còn lại như Preferences, Folders, Responses,… Roundcube is one of the best known open source solutions to manage a reliable and customizable email service through a web service. In this tutorial there are all the information to install and manage a webmail service with Roundcube on CentOS 7. As it is based on PHP, Roundcube requires the installation of a web server such as NGINX or Apache and relies on a MySQL-like database such as MariaDB. First, connect to your server via an SSH connection. If you haven’t done so yet, following our guide it is recommended to connect securely with SSH. In case of a local server, go to the next step and open the terminal of your server. Installation of NGINX and PHPProceed by installing an instance of NGINX with support for PHP and MySQL:
At the end of the installation of all the packages, start NGINX and enable its automatic start-up on the system:
The use of Roundcube requires the variation of two parameters within the PHP configuration file present in /etc/php.ini:
Save the file just modified, start and enable the PHP-FPM service:
Installation of MariaDBIn order to function properly Roundcube needs MariaDB database, that can be installed with the following command:
Once the installation is completed, start the service:
Proceed with the security of MariaDB by running a script included in MariaDB to increase security and limit access to your databases: Start the utility script provided by MariaDb "mysql_secure_installation" and answer all the questions:
First, you will be asked whether you want to enable the password validation system. If you enable this system, when you set a password for a user it will be evaluated. If the password does not respect the minimum security requirements, it is rejected with an error message. Then, you will be asked if you want to change the root password to one of your preference. If you enable the password validation system, you will have to enter a password that respects the security criteria. Following some best practices for creating a secure password is recommended. This includes:
Finally, choose whether to remove anonymous users, test databases and whether to disable remote login with the root user. For an adequate level of security, confirming all these changes is recommended. At this point, confirm the update of the displayed table to apply the new security criteria. `Enter current password for root (enter for none): OK, successfully used password, moving on... root user without the proper authorisation. New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
... Success! ... Success! ensures that someone cannot guess at the root password from the network. ... Success! - Dropping test database...
... Success!
- Removing privileges on test database...
... Success! ... Success! installation should now be secure.
After restarting the service, a database for Roundcube and a new user for it (by changing the password) can be created:
Roundcube installationIn order to download the latest version of Roundcube you will need wget. If not installed on your system, do it with the following command: Otherwise, continue by downloading and extracting the package from github: Then move everything to the NGINX directory:
0 The Roundcube package contains an sql file that has to be imported into the newly created database with the required structure:
1 During the import process, you will be asked for the database root password entered during the installation of MariaDB. Once the database configuration is completed, ìprepare the NGINX virtual server for the domain mail.domain.com. First, make sure that the owner of the html folder is NGINX:
2 Now create and edit the virtual host file/etc/nginx/conf.d/mail.example.com.conf as follows:
3 Before saving all the changes, remember to change the ‘domain.com’ domain to your domain. In case of permission errors, modify the PHP-FPM configuration present in /etc/php-fpm.d/www.conf by changing these parameters:
4 Also, make sure that the owner of the PHP "session" directory is NGINX:
5 At this point, Roundcube is ready to be configured from the web interface. Roundcube configuration via web interfaceTo continue the installation, through a web browser go to : In this first phase, the Roundcube installer shows a summary of the requirements for operating the system correctly. Click on the "NEXT" button to continue. In this second phase, a series of operating parameters have to be entered. Leave everything unchanged except the product_name where o enter your domain name or a nickname of your choice. Changing the access data to the sql server with those entered during the installation phase is important. When completed, click "NEXT" to continue. Once the second phase is completed, test the IMAP / SMTP parameters of your server to verify that Roundcube is able to send/receive mail. Once finished, delete all the necessary files for the installation present in the /var/www/html/roundcubemail/installer folder by running the command:
6 If you want to modify or change the parameters entered during the configuration phase, modifying the file in the /var/www/html/roundcubemail/config/config.inc.php directory is always possible. Access WebmailOur Roudcube instance is ready to use at the URL . Then, log in using the login details of a mailbox configured with Dovecot. |