Hello Daniel,
--On 24. toukokuuta 2005 1:50 +0800 Daniel <bart at 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