snmp-mibs-downloader \
unixodbc-dev \
llvm \
+ libc-client-dev libkrb5-dev dovecot-core dovecot-pop3d dovecot-imapd \
${{ parameters.packages }}
displayName: 'APT'
--enable-dba \
--with-snmp \
--with-unixODBC \
+ --with-imap \
+ --with-kerberos \
+ --with-imap-ssl \
--enable-werror \
--with-config-file-path=/etc \
--with-config-file-scan-dir=/etc/php.d
sudo cp ext/snmp/tests/bigtest /etc/snmp
sudo service snmpd restart
displayName: 'Configure snmpd'
+ - script: |
+ set -e
+ sudo groupadd -g 5000 vmail
+ sudo useradd -m -d /var/vmail -s /bin/false -u 5000 -g vmail vmail
+ sudo cp ext/imap/tests/dovecot.conf /etc/dovecot/dovecot.conf
+ sudo cp ext/imap/tests/dovecotpass /etc/dovecot/dovecotpass
+ sudo service dovecot restart
+ displayName: 'Configure IMAP'
<?php
$fn = __DIR__ . DIRECTORY_SEPARATOR . "foo75774";
-$var1=fopen($fn, "w");
+$var1 = fopen($fn, "w");
try {
imap_append($var1, "", "", "", "");
-} catch (Throwable $e) {
- echo "\nException: " . $e->getMessage() . "\n";
+} catch (\TypeError $e) {
+ echo $e->getMessage() . "\n";
}
fclose($var1);
?>
--EXPECTF--
Warning: imap_append(): Internal date not correctly formatted in %s on line %d
-
-Exception: imap_append(): Supplied resource is not a valid imap resource
+imap_append(): supplied resource is not a valid imap resource
--- /dev/null
+# 2.2.33.2 (d6601f4ec): /etc/dovecot/dovecot.conf
+# Pigeonhole version 0.4.21 (92477967)
+listen = *, ::
+
+# To make authentication work
+ssl = no
+disable_plaintext_auth = no
+
+auth_mechanisms = plain cram-md5
+auth_username_format = %u
+auth_debug = yes
+auth_verbose = yes
+#log
+log_path = /var/log/dovecot.log
+# If not set, use the value from log_path
+info_log_path = /var/log/dovecot-info.log
+# If not set, use the value from info_log_path
+debug_log_path = /var/log/dovecot-debug.log
+## Mailbox locations and namespaces
+mail_location = maildir:/var/vmail/dovecot/mail/%d/%n/Maildir
+passdb {
+ args = scheme=cram-md5 /etc/dovecot/dovecotpass
+ driver = passwd-file
+}
+protocols = imap
+service auth {
+ user = root
+}
+userdb {
+ args = /etc/dovecot/dovecotpass
+ driver = passwd-file
+ override_fields = home=/var/vmail/dovecot/mail/%d/%n
+}
--- /dev/null
+webmaster@something.com:{CRAM-MD5}be5f3177e9c7c06403272f25d983ba630df4ef40476b353bb3087a8401713451:vmail:vmail
<?php
// Change these to make tests run successfully
-$server = '{127.0.0.1/norsh}';
+$server = '{127.0.0.1:143/norsh}';
$default_mailbox = $server . "INBOX";
$domain = "something.com";
$admin_user = "webmaster"; // a user with admin access
--- /dev/null
+sudo service dovecot stop
+sudo groupadd -g 5000 vmail
+sudo useradd -m -d /var/vmail -s /bin/false -u 5000 -g vmail vmail
+sudo cp ext/imap/tests/dovecot.conf /etc/dovecot/dovecot.conf
+sudo cp ext/imap/tests/dovecotpass /etc/dovecot/dovecotpass
+sudo service dovecot start
extension_loaded('imap') or die('skip imap extension not available in this build');
// Change these to make tests run successfully
-$mailbox = '{localhost/norsh}';
+$mailbox = '{127.0.0.1:143/debug/norsh}';
$username = 'webmaster@something.com';
$password = 'p4ssw0rd';
$options = OP_HALFOPEN; // this should be enough to verify server present