Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to connect to my mailbox on my hosting via imap_open() (php) . But its throwing authentication failed error.
According to my hosting provider they have disabled telnet for security reasons. Could disabling telnet cause php to not be able to make an imap connection ??

share|improve this question

No. These are different protocols. IMAP is working on port 143 and telnet on port 23. Your confusion likely comes from the fact that IMAP is a text based protocol and you can use the telnet client program to control an IMAP session.

If the error messages states that the authentication failed, this is a strong hint that the IMAP server is working and answering your connection attempts but you somehow failed to offer proper credentials.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.