Skip to content

Commit a80a029

Browse files
committed
Optimize Dovecot configuration for IMAP tests
Closes GH-6531
1 parent caa7100 commit a80a029

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

ext/imap/tests/imap_errors_basic.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,4 @@ List any errors
2626
array(%d) {
2727
[0]=>
2828
string(%d) "%s"
29-
[1]=>
30-
string(%d) "%s"
3129
}

ext/imap/tests/setup/dovecot.conf

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,29 @@
22
# Pigeonhole version 0.4.21 (92477967)
33
listen = *, ::
44

5-
# To make authentication work
5+
# For SSL need to setup a certificate
6+
# See https://wiki.dovecot.org/SSL/DovecotConfiguration
67
ssl = no
7-
disable_plaintext_auth = no
88

9-
auth_mechanisms = plain cram-md5
9+
# Disable plaintext to prevent a warning at each login
10+
disable_plaintext_auth = yes
11+
12+
auth_mechanisms = cram-md5
1013
auth_username_format = %u
11-
auth_debug = yes
1214
auth_verbose = yes
13-
#log
15+
auth_debug = yes
16+
auth_failure_delay = 1secs
17+
18+
# This need dovecot 2.3.12.
19+
# login_proxy_timeout = 500milliseconds
20+
# ^ This would allow to kill login processes early, but needs testing. So would use v instead
21+
# login_proxy_timeout = 5s
22+
# There is a 1 second delay between each reconnection attempt.
23+
# https://doc.dovecot.org/settings/core/#login-proxy-max-reconnects
24+
# This need dovecot 2.3.12.
25+
# login_proxy_max_reconnects = 3
26+
27+
# Log config
1428
log_path = /var/log/dovecot.log
1529
# If not set, use the value from log_path
1630
info_log_path = /var/log/dovecot-info.log

0 commit comments

Comments
 (0)