Skip to content

Commit aebbd83

Browse files
ioannidesalexKristan Kenney
authored andcommitted
Roundcube hardening (hestiacp#268)
Enable TLS/SSL for Roundcube connections.
1 parent 97a594a commit aebbd83

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

install/deb/roundcube/main.inc.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@
7272
// %d - domain (http hostname without the first part)
7373
// %s - domain name after the '@' from e-mail address provided at login screen
7474
// For example %n = mail.domain.tld, %d = domain.tld
75-
$rcmail_config['default_host'] = 'localhost';
75+
$rcmail_config['default_host'] = 'tls://localhost';
7676

7777
// TCP port used for IMAP connections
78-
$rcmail_config['default_port'] = 143;
78+
$rcmail_config['default_port'] = 993;
7979

8080
// IMAP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
8181
// best server supported one)
@@ -139,19 +139,19 @@
139139
// %d - domain (http hostname without the first part)
140140
// %z - IMAP domain (IMAP hostname without the first part)
141141
// For example %n = mail.domain.tld, %d = domain.tld
142-
$rcmail_config['smtp_server'] = '';
142+
$rcmail_config['smtp_server'] = 'tls://localhost';
143143

144144
// SMTP port (default is 25; use 587 for STARTTLS or 465 for the
145145
// deprecated SSL over SMTP (aka SMTPS))
146-
$rcmail_config['smtp_port'] = 25;
146+
$rcmail_config['smtp_port'] = 587;
147147

148148
// SMTP username (if required) if you use %u as the username Roundcube
149149
// will use the current username for login
150-
$rcmail_config['smtp_user'] = '';
150+
$rcmail_config['smtp_user'] = '%u';
151151

152152
// SMTP password (if required) if you use %p as the password Roundcube
153153
// will use the current user's password for login
154-
$rcmail_config['smtp_pass'] = '';
154+
$rcmail_config['smtp_pass'] = '%p';
155155

156156
// SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
157157
// best server supported one)
@@ -298,11 +298,11 @@
298298
$rcmail_config['sendmail_delay'] = 0;
299299

300300
// Maximum number of recipients per message. Default: 0 (no limit)
301-
$rcmail_config['max_recipients'] = 100;
301+
$rcmail_config['max_recipients'] = 100;
302302

303303
// Maximum allowednumber of members of an address group. Default: 0 (no limit)
304304
// If 'max_recipients' is set this value should be less or equal
305-
$rcmail_config['max_group_members'] = 100;
305+
$rcmail_config['max_group_members'] = 100;
306306

307307
// add this user-agent to message headers when sending
308308
$rcmail_config['useragent'] = 'Roundcube Webmail';
@@ -847,4 +847,4 @@
847847
// Georgia, Helvetica, Impact, Tahoma, Terminal, Times New Roman, Trebuchet MS, Verdana
848848
$rcmail_config['default_font'] = '';
849849

850-
// end of config file
850+
// end of config file

0 commit comments

Comments
 (0)