root@www:~# mysqlMariaDB [(none)]> create database roundcube; MariaDB [(none)]> grant all privileges on roundcube.* to roundcube@'localhost' identified by 'password'; MariaDB [(none)]> exit root@www:~# apt -y install roundcube roundcube-mysql# select [No] on this example (set manually later)root@www:~# cd /usr/share/dbconfig-common/data/roundcube/installroot@www: # mysql -u roundcube -D roundcube -p < mysqlEnter password: # MariaDB roundcube passwordroot@www:/usr/share/dbconfig-common/data/roundcube/install# cdroot@www:~# vi /etc/roundcube/debian-db.php// set database info$dbuser='roundcube';$dbpass='password';$basepath='';$dbname='roundcube';$dbserver='localhost';$dbport='3306';$dbtype='mysql';root@www:~# vi /etc/roundcube/config.inc.php// line 27 : specify IMAP server (STARTTLS setting)$config['imap_host'] = ["tls://mail.worldcm.net:143"];// line 31 : specify SMTP server (STARTTLS setting)$config['smtp_host'] = 'tls://mail.worldcm.net:25';// line 35 : confirm (use the same user for SMTP auth and IMAP auth)$config['smtp_user'] = '%u';// line 39 : confirm (use the same password for SMTP auth and IMAP auth)$config['smtp_pass'] = '%p';// line 46 : possible to change to any title you like$config['product_name'] = 'WorldCm Webmail'; 36 $config['default_host'] = 'localhost'; 50 $config['smtp_server'] = 'localhost'; 53 $config['smtp_port'] = 25; 68 $config['product_name'] = 'worldCm Webmail';---------------------------------------------------------------------------------------------// line 27 : specify IMAP server (STARTTLS setting)$config['imap_host'] = ["tls://mail.worldcm.net:143"];// line 31 : specify SMTP server (STARTTLS setting)$config['smtp_host'] = 'tls://mail.worldcm.net:587';--------------------------------------------// add to last line// specify SMTP auth type$config['smtp_auth_type'] = 'LOGIN';// specify SMTP HELO host$config['smtp_helo_host'] = 'mail.worldcm.net';// specify domain name$config['mail_domain'] = 'worldcm.net';// specify UserAgent$config['useragent'] = 'Server World Webmail';// specify SMTP and IMAP connection option$config['imap_conn_options'] = array( 'ssl' => array( 'verify_peer' => true, 'CN_match' => 'worldcm.net', 'allow_self_signed' => true, 'ciphers' => 'HIGH:!SSLv2:!SSLv3', ),);$config['smtp_conn_options'] = array( 'ssl' => array( 'verify_peer' => true, 'CN_match' => 'worldcm.net', 'allow_self_signed' => true, 'ciphers' => 'HIGH:!SSLv2:!SSLv3', ),);root@www:~# vi /etc/apache2/conf-enabled/roundcube.conf# line 3 : uncommentAlias /roundcube /var/lib/roundcube/public_html# line 11 : change access permission if needRequire ip 127.0.0.1 10.0.0.0/24root@www:~# systemctl reload apache2Skin LOGO change:
/usr/share/roundcubemail/skins/elastic/images
Webmail Logo: logo.svg TAb Logo: favicon.ico# vi /etc/php/8.0/fpm/php.ini
# vi /etc/php/8.3/fpm/php.ini
max_execution_time = 300memory_limit = 512M; post_max_size = 80M;upload_max_filesize = 50M; date.timezone = Asia/Dhakasystemctl restart apache2systemctl restart php8.3-fpm http://your server's hostname or IP address/roundcube/