Well I've setup a reltively simple code block:

function mailboxmsginfo($mailbox='INBOX', $username, $password) {
$username = $username."@dalive.com";
$imap_stream = "{localhost:143/notls}".$mailbox;
$mbox = imap_open($imap_stream, $username, $password)
or die("can't connect ($username with $password): " . imap_last_error());
$check = imap_mailboxmsginfo($mbox);
imap_close($mbox);


  return $check;
}

Client side I get (from imap_last_error): Can not authenticate to IMAP server: Authentication failed.

Serverside, from Courier's logs i see the commands that differ from what normally comes from my mail clients. The normal mail client commands are of the format:

imapd: Connection, ip=[::ffff:192.168.100.11], command=LOGIN
imapd: LOGIN: DEBUG: ip=[::ffff:192.168.100.11], username=myusername
imapd: LOGIN: DEBUG: ip=[::ffff:192.168.100.11], password=mypassword
imapd: LOGIN, [EMAIL PROTECTED], ip=[::ffff:192.168.100.11], protocol=IMAP


while the commands as a result of the PHP funcion are of the format:

imapd: Connection, ip=[::ffff:192.168.100.11], command=LOGIN
imapd: LOGIN: DEBUG: ip=[::ffff:192.168.100.11], command=AUTHENTICATE imapd: LOGIN: DEBUG: ip=[::ffff:192.168.100.11], command=LOGOUT
imapd: LOGOUT, ip=[::ffff:192.168.100.11]


Any ideas?
Thanks


Elfyn McBratney wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Saturday 10 Apr 2004 22:59, Pembo13 wrote:

Hello,

Does anyone have php's imap functions working with CourierIMAP as their
imap server?


Yes, as does IMP (see horde.org). What errors do you get? What code are you using (strip it down to something simple like connect/disconnect)?

If you need help, theres examples in the manual:
  <http://www.php.net/manual/en/ref.imap.php>

Elfyn

- -- Elfyn McBratney, EMCB
mailto:[EMAIL PROTECTED]
http://www.emcb.co.uk/


PGP Key ID: 0x456548B4
PGP Key Fingerprint:
  29D5 91BB 8748 7CC9 650F  31FE 6888 0C2A 4565 48B4

"When I say something, I put my name next to it." -- Isaac Jaffee


~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ <<

<< ~ Linux london 2.6.5-emcb-241 #2 i686 GNU/Linux ~ >>


~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ <<

-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAeI3UaIgMKkVlSLQRAlGJAJ40vHmcldx23hSFt9rpbYlEZ+MrigCgmRfz
V1Pq2IrZz0RarH8RI3yPj/o=
=ctL7
-----END PGP SIGNATURE-----

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to