[Dovecot] dovecot and php imap_open
Hi
I'm have problems with dovecot and the php imap_open function.
Can't seem to get it to work. I just get a "Aborted login [127.0.0.1]" in the dovecot logs.
The php error is:
[client 192.168.1.254] PHP Warning: imap_open(): Couldn't open stream {127.0.0.1:110/pop3/notls/norsh/novalidate-cert}INBOX in /var/www/html/mail/auth.php on line 89, referer:
[client 192.168.1.254] PHP Notice: (null)(): Can't open mailbox {127.0.0.1:110/pop3/notls/norsh/novalidate-cert}INBOX: invalid remote specification (errflg=2) in Unknown on line 0, referer:
Same type of error with ether imap or pop3. Anyone have a trick around this?
Thanks for any help.
Regards Daniel
Hello Daniel,
--On 24. toukokuuta 2005 1:50 +0800 Daniel bart@istnet.net.au wrote:
I'm have problems with dovecot and the php imap_open function.
Can't seem to get it to work. I just get a "Aborted login [127.0.0.1]" in the dovecot logs.
The php error is:
[client 192.168.1.254] PHP Warning: imap_open(): Couldn't open stream {127.0.0.1:110/pop3/notls/norsh/novalidate-cert}INBOX in /var/www/html/mail/auth.php on line 89, referer:
To me it looks like your trying to connect to a port that's listened by Dovecot's POP server, not the IMAP one - please correct me if I'm wrong.
What I'd suggest you to do is to change the port number from 110 to 143. You should change you connection string to something similar like this:
<?php $mbox = imap_open("{127.0.0.1:143/notls/norsh/novalidate-cert}INBOX", "user_id", "password"); ?>
For further information, see http://fi.php.net/imap_open.
Thanks, Tero
-- Tero Ripattila
participants (2)
-
Daniel
-
Tero Ripattila