How do I use telnet to log into imap?


Sep 24, 2014
cPanel Access Level
Website Owner

I apologize if this is not the correct place for this post....

I'm trying to use telnet to log into IMAP. I am doing this in an attempt to read all of the message bodies for a single account. And I want to concatenate all of them, they contain log output from a router.

I have tried the windows 10 telnet client but when I connect I only get a blank screen and nothing is echoed back to me. I've also tried putty and it disconnects immediately.

My email client has no issue with IMAP and is working as expected.

I'm open to solutions other than using telnet. Even if I've got to write some code in PHP.

Thank you!
Last edited by a moderator:


Jurassic Moderator
Staff member
Oct 19, 2014
cPanel Access Level
Root Administrator
Hey there! While not related to the cPanel tools on the system, I've have good results with this guide in the past:

The second half of that guide shows how to log in to a mail client, but you could replace port 110 with the IMAP port on your machine, which will most likely be 143.

Can you try that and let me know if that doesn't work how you expect?