[Dovecot] dovecot and php imap_open

Tero Ripattila tero at ripattila.com
Mon May 23 21:07:20 EEST 2005

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 []"
> in the dovecot logs.
> The php error is:
> [client] PHP Warning:  imap_open(): Couldn't open stream
> 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 

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 

$mbox = imap_open("{}INBOX", 
"user_id", "password");

For further information, see <http://fi.php.net/imap_open>.

Thanks, Tero

Tero Ripattila

More information about the dovecot mailing list