Skip to main content

Error opening mailbox: IMAP connection broken

Comments

3 comments

  • behinam
    in my module i see this error: IMAP method imap_open() failed with error: Certificate failure for mail.xxxxxx.com: Server name does not match certificate: /CN=srv.xxxxxx.com in Mailbox.php line 878 at Mailbox->imap('open', array('{mail.xxxxxx.com:995/imap/ssl}INBOX', 'MAIL@xxxxxx.com', 'PASSWORD', 0, 0, array()), false, 'PhpImap\\ConnectionException')in Mailbox.php line 148
    0
  • Infopro
    This thread reads like you're attempting to connect to IMAP via a script, is that correct?
    0
  • kamm
    It took me a while to figure this out. Assuming a Let's Encrypt certificate, this worked for me: [CODE=php]$mbox = imap_open("{mail.example.com:993/imap/ssl/novalidate-cert}INBOX", "bounce@example.com", "PASSWORD");
    0

Please sign in to leave a comment.