HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   imap_open() Couldn't open stream (http://www.howtoforge.com/forums/showthread.php?t=54880)

Skprorok 10th November 2011 21:44

imap_open() Couldn't open stream
 
Hi all

I have created my own webmail client and i have used it with no problems. I have migrate my whole server content to other server and now I have problem with connection to the imap server. PHP function imap_open(xxx.my.ip.xxx/novalidate-cert, .....); which i used on old server now doesn't work. Of course i changed IP of the server, i tried to use localhost/novalidate-cert, localhost:143/novalidate-cert but still same error. Squirrelmail (which have in config.php file: localhost:143) works fine. Can u help me please?

Thanks in advance

till 10th November 2011 21:51

You should use "localhost" as hostname or "127.0.0.1" as IP in the imap_open function and not the Ip of the server.

Skprorok 10th November 2011 22:07

Quote:

Originally Posted by till (Post 267276)
You should use "localhost" as hostname or "127.0.0.1" as IP in the imap_open function and not the Ip of the server.


Thanks for answer.

When I use localhost or 127.0.0.1 same error: imap_open(): Couldn't open stream {127.0.0.1/novalidate-cert}INBOX in...

I used IP of the server on the older server and it worked fine... Now nothing works and I dont know why

till 10th November 2011 22:14

Which errors do you get in the mail log?

Skprorok 10th November 2011 22:30

Quote:

Originally Posted by till (Post 267280)
Which errors do you get in the mail log?

No errors in mail error log, and in the mail log: Nov 10 22:22:06 servervg2 imapd: Connection, ip=[::1] (i ran script and 22:22 and this has been written)

Skprorok 14th November 2011 01:16

Anyone can help me please?


All times are GMT +2. The time now is 16:23.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.