xref: /PHP-7.3/ext/imap/tests/README (revision 1c850bfc)
1Many of the tests in this directory require a mail server to be running, if there is no mail server the test will skip and warn, see skipif.inc for details.
2
3To make the tests run parameters in the skipif.inc and imap_include.inc file will need to be changed to match the local mailserver configuration.
4
5
6The tests have been checked using dovecot (on Linux 32 and 64 bit systems) and hMailServer on Windows. The tests are intended to be mailserver agnostic.
7
8The tests can be run without modification with a fairly minimal dovecot installation. For information, the dovecot.conf file used in running the tests is given below (after -----). The dovecot password file (dovecotpass) requires a password for one user, webmaster@something.com. It's also necessary to set up one additional user ID (vmail) to own the mail directory.
9
10--------------------------------------------------
11protocols = imap imaps
12
13listen = *
14
15ssl_disable = yes
16
17disable_plaintext_auth=yes
18
19## Mailbox locations and namespaces
20
21mail_location = maildir:/home/vmail/mail/%d/%n/Maildir
22
23auth_verbose = yes
24
25auth_debug = yes
26
27auth default {
28
29  mechanisms = login
30
31  passdb passwd-file {
32    args = /etc/dovecot/dovecotpass
33  }
34
35  userdb static {
36    args = uid=11459 gid=1002 home=/home/vmail/dovecot/mail/%d/%n
37  }
38
39  user = root
40}
41