mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00
Update README for how to setup IMAP tests
This details which packages needs to be installed on Ubuntun 18.04, which configure flags are necessary and what the setup.sh shell script does.
This commit is contained in:
parent
e950ca13ea
commit
3b67f183b1
1 changed files with 11 additions and 35 deletions
|
@ -9,40 +9,16 @@ files will need to be changed to match the local mailserver configuration.
|
|||
The 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.
|
||||
|
||||
The 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. 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.
|
||||
## Set-up tests on Ubuntu (checked on Ubuntu 18.04 (Bionic))
|
||||
The necessary packages can be installed using the following command;
|
||||
`apt-get install libc-client-dev libkrb5-dev dovecot-core dovecot-pop3d dovecot-imapd`
|
||||
|
||||
```txt
|
||||
protocols = imap imaps
|
||||
|
||||
listen = *
|
||||
|
||||
ssl_disable = yes
|
||||
|
||||
disable_plaintext_auth=yes
|
||||
|
||||
## Mailbox locations and namespaces
|
||||
|
||||
mail_location = maildir:/home/vmail/mail/%d/%n/Maildir
|
||||
|
||||
auth_verbose = yes
|
||||
|
||||
auth_debug = yes
|
||||
|
||||
auth default {
|
||||
mechanisms = login
|
||||
|
||||
passdb passwd-file {
|
||||
args = /etc/dovecot/dovecotpass
|
||||
}
|
||||
|
||||
userdb static {
|
||||
args = uid=11459 gid=1002 home=/home/vmail/dovecot/mail/%d/%n
|
||||
}
|
||||
|
||||
user = root
|
||||
}
|
||||
The build of PHP will need to be compiled with the following flags:
|
||||
```
|
||||
--with-imap --with-kerberos --with-imap-ssl
|
||||
```
|
||||
|
||||
Then run the set-up script `ext/imap/tests/setup.sh` which will add the `vmail`
|
||||
group and user which is used by Dovecot for the mailbox. It will also copy the
|
||||
`ext/imap/tests/dovecot.conf` and `ext/imap/tests/dovecotpass` to the correct
|
||||
location for Dovecot and restarts it for the new configuration to be enabled.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue