Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't connect to IMAP with PHP

Tags:

php

email

imap

i'm trying to connect php with an imap server but i'm getting this error:

Warning: imap_open() [function.imap-open]: Couldn't open stream {mail.XXX.it:143/imap/notls/norsh}INBOX Array ( [0] => SECURITY PROBLEM: insecure server advertised AUTH=PLAIN [1] => Can not authenticate to IMAP server: AUTHENTICATE mechanism not supported, mate ) Cannot connect: 1

When trying to connect mail.XXX.it:143/imap/notls/norsh

And this error:

Warning: imap_open() [function.imap-open]: Couldn't open stream {mail.XXX.it:143/imap/secure/notls/norsh}INBOX Array ( [0] => Can't do secure authentication with this server ) Cannot connect: 1

When trying to connect mail.XXX.it:143/imap/secure/notls/norsh

How can i get around this? (Hosting has no SSL security) Thanks

like image 909
xspecial Avatar asked Dec 02 '25 11:12

xspecial


1 Answers

Have you tried checking your ssl certs? If the server has a self-signed cert it might cause php's imap library to throw a configurable error (possibly what you are getting). Furthermore the imap library is installed as a package, sometime separately, you might want to check your configurations for this lib.

Tell me what you think and a curl -v basic auth attempt readout might be helpful, Cheers

like image 66
Cristian Cavalli Avatar answered Dec 05 '25 02:12

Cristian Cavalli



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!