imap_open() Couldn't open stream

Discussion in 'Installation/Configuration' started by Skprorok, Nov 10, 2011.

  1. Skprorok

    Skprorok New Member

    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
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
     
  3. Skprorok

    Skprorok New Member


    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
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Which errors do you get in the mail log?
     
  5. Skprorok

    Skprorok New Member

    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)
     
  6. Skprorok

    Skprorok New Member

    Anyone can help me please?
     
: imap_open, server

Share This Page