top of page
eatitlamera

Telnet IMAP (143 Port)



A telnet program is often available by default with Linux and OS X/macOS systems.On an OS X/macOS system, you can run the program from a Terminalwindow; the program is found in the Applications folder. On aMicrosoft Windows system, you can use the free PuTTY program or you caninstall a Telnet clientfrom Microsoft Windows. With a telnet client that is uses a command-lineinterface (CLI), you can issue the command telnet server imap where server is the fully qualified domain name (FQDN) of the IMAP server or the IP address of the server.Or you can use the well-known port for the IMAP protocol, which isTCP port 143, i.e., telnet server 143.


telnet imap.123-reg.co.uk 143 telnet imap.123-reg.co.uk 143 * OK [CAPABILITY IMAP4rev1 SASL-IR SORT THREAD=REFERENCES MULTIAPPEND UNSELECT LITERAL+ IDLE CHILDREN NAMESPACE LOGIN-REFERRALS UIDPLUS LIST-EXTENDED I18NLEVEL= 1 AUTH=PLAIN] ATLAS/WebFusion Mail Server 01 LOGIN username@domain.com password 01 OK [CAPABILITY IMAP4rev1 SASL-IR SORT THREAD=REFERENCES MULTIAPPEND UNSELECT LITERAL+ IDLE CHILDREN NAMESPACE LOGIN-REFERRALS UIDPLUS LIST-EXTENDED I18NLEVEL =1 AUTH=PLAIN] Logged in.




Telnet IMAP (143 port)



means that you have a program (presumably your imap server) listening on port 143 via tcp (on both IPv4 and IPv6). And the "0.0.0.0" part means it should accept connections from any source. (If it said "127.0.0.1:143" for the local address, it would mean that only local connections would be accepted.)


After DOVECOT configuration I can connect(thru telnet, from my iPhone using gmail client) to port 143 and get IMAP handshake message, login etc.BUT I get authentication failed error when connecting to port 993 (from iPhone)


Now we have a different piece of software here the connects via port 25, so I tried the telnet from our webMethods server and I was able to establish a connection. I then tried to set up the Email Listener on port 25 but I still get the original message (unable to logon).


Hi JustinSorry, my 1 brain cell is not working, so please disregard my comment over starttls on imap, it is possible.My telnet gives below, and running starttls gives no errors on imapMany thanksJohn


I am having some issues, with setting up dovecot. I have been following this guide: -mail-server-ubuntu-14-04/ to setup a mail server, and it was all working. Postfix is installed and configured correctly. As I was doing the Dovecot installation, it asked me about using telnet to connect and verify the connections were working (in the guide) and whether ports: 110,995,993,143 work. But only ports 995 and 993 allow me to connect, but they do not show any kind of: '+OK Dovecot (Ubuntu) ready.' on them.


That being said, I know that i have opened ports 143 and 993. However, I cannot telnet or connect to port 143 remotely (or 993 for that matter). When I try to use Opens a new window and ping either of those, I get connection refused.


If the telnet connection fails, but the IMAP server seems to be running, this is usually because of a firewall getting in the way. Investigate any firewall settings on the IMAP server's host, and any intervening network devices, and make any necessary adjustments to open up port 143.


I've got SASLAuthd working (via LDAP), and am also successfully able to telnet via port 25 with my LDAP credentials. Postfix is configured with Dovecot. All 3 services are running fine (Postfix, Dovecot, SASLAuthd)


I found a domain with open POP3 (110) and IMAP (143) ports. I was able to use TELNET to connect to them successfully, but beyond this is there any common vulnerability/exploit I should test on them, or is this even a security problem to have them open like this?


I'm not sure what exactly you are referring to but my guess is that you've seen this string in the first line you've got when connecting to these ports. Both IMAP and POP3 (and SMTP and FTP...) send after the connection a greeting from the server to the client and this greeting often contains a hostname or server type or whatever the admins liked to have there. Looking for fenix imap at shodan returns something like this:


The telnet client requires you to input the server name or IP address and the IMAP connection port (which is usually 143), as shown in Fig. 5.


  • Hi,\\n\\nProblem is solved. We did a telnet to the Mail Server at port 143. After logging in, we ran the following command:\\nLIST "" "*"\\n\\nThis listed the folders Inbox/Drafts/Sent Items etc.\\nSo we made the URL as:\\nimap:///Inbox\\n\\nThe username/password takes us to the relevant Inbox.\\nThis solved the problem.\\n\\n\\nRegards,\\nPuloma.\",\"author\":\"username\":\"former.member\",\"displayName\":\"Former Member\",\"groupIcons\":[],\"suspended\":true,\"isCurrentUser\":false,\"parentAuthor\":\"username\":\"former.member\",\"displayName\":\"Former Member\",\"groupIcons\":[],\"suspended\":true,\"isCurrentUser\":false,\"id\":2200230,\"creationDate\":1175685946000,\"activeRevisionId\":4495644,\"lastActivity\":1175685946000,\"parentId\":2177617,\"originalParentId\":2173618,\"likeCount\":0,\"visibility\":\"full\",\"depth\":0,\"attachments\":[],\"canVoteUpOrCancel\":false,\"relations\":\"canReport\":false,\"visibility\":\"full\",\"canEdit\":false,\"canUseDelete\":false,\"isLiked\":false,\"type\":\"comment\",\"canVoteUpOrCancel\":false,\"canConvertToAnswer\":false,\"canBeModerated\":false,\"canViewRevisions\":false,\"showInReply\":false,\"reported\":false,\"canCancelReport\":false,\"canDelete\":false,\"canVoteDownOrCancel\":false,\"canComment\":false,\"canViewReports\":false,\"isCurrentUserAuthor\":false,\"liked\":false,\"moderatorComment\":false}]},\"2173690\":\"rootParentId\":2173690,\"commentsCount\":1,\"comments\":[\"body\":\"Hi, \\n \\nConnection parameters are: \\nURL: imap:///XIINBOX/ \\n \\nDefault interface namespace: \\nDefault interface: DefaultInterface \\nQOS: EO. \\n \\nRegards, \\nPuloma.\",\"author\":\"username\":\"former.member\",\"displayName\":\"Former Member\",\"groupIcons\":[],\"suspended\":true,\"isCurrentUser\":false,\"parentAuthor\":\"username\":\"prabhu.s2\",\"displayName\":\"Prabhu S\",\"groupIcons\":[],\"suspended\":false,\"isCurrentUser\":false,\"id\":2173816,\"creationDate\":1175078114000,\"activeRevisionId\":4474842,\"lastActivity\":1175078114000,\"parentId\":2173690,\"originalParentId\":2173618,\"likeCount\":0,\"visibility\":\"full\",\"depth\":0,\"attachments\":[],\"canVoteUpOrCancel\":false,\"relations\":\"canReport\":false,\"visibility\":\"full\",\"canEdit\":false,\"canUseDelete\":false,\"isLiked\":false,\"type\":\"comment\",\"canVoteUpOrCancel\":false,\"canConvertToAnswer\":false,\"canBeModerated\":false,\"canViewRevisions\":false,\"showInReply\":false,\"reported\":false,\"canCancelReport\":false,\"canDelete\":false,\"canVoteDownOrCancel\":false,\"canComment\":false,\"canViewReports\":false,\"isCurrentUserAuthor\":false,\"liked\":false,\"moderatorComment\":false],\"2173981\":\"rootParentId\":2173981,\"commentsCount\":2,\"comments\":[\"body\":\"1. leave imap:// just put the server name, no folder2. There should not be any error message, when your inbox has no unread mails.\",\"author\":\"username\":\"stefan.grube\",\"displayName\":\"Stefan Grube\",\"groupIcons\":[],\"suspended\":false,\"isCurrentUser\":false,\"parentAuthor\":\"username\":\"former.member\",\"displayName\":\"Former Member\",\"groupIcons\":[],\"suspended\":true,\"isCurrentUser\":false,\"id\":2174298,\"creationDate\":1175082429000,\"activeRevisionId\":4475254,\"lastActivity\":1175082429000,\"parentId\":2174277,\"originalParentId\":2173618,\"likeCount\":0,\"visibility\":\"full\",\"depth\":0,\"attachments\":[],\"canVoteUpOrCancel\":false,\"relations\":\"canReport\":false,\"visibility\":\"full\",\"canEdit\":false,\"canUseDelete\":false,\"isLiked\":false,\"type\":\"comment\",\"canVoteUpOrCancel\":false,\"canConvertToAnswer\":false,\"canBeModerated\":false,\"canViewRevisions\":false,\"showInReply\":false,\"reported\":false,\"canCancelReport\":false,\"canDelete\":false,\"canVoteDownOrCancel\":false,\"canComment\":false,\"canViewReports\":false,\"isCurrentUserAuthor\":false,\"liked\":false,\"moderatorComment\":false]}"); const simplifiedQuestionView = JSON.parse("true"); (function() window.pageContext = mergeDeep(pageContext, question: id: 2173618, plug: "error-in-mail-adapter-imap", votes: 0, questionTitle: "Error in Mail Adapter: IMAP", isClosed: false, isLocked: false, isRedirected: false, redirectedFromTitle: "", redirectedFromId: "", closedStatusData: JSON.parse(""), userVoted: false, relations: JSON.parse("\"canClose\":false,\"canUnredirect\":false,\"canReport\":false,\"visibility\":\"full\",\"canEdit\":false,\"canUseDelete\":false,\"canReopen\":false,\"type\":\"question\",\"canVoteUpOrCancel\":false,\"canViewRevisions\":true,\"canUnlock\":false,\"reported\":false,\"canVoteDownOrCancel\":false,\"canLock\":false,\"canCancelReport\":false,\"canComment\":true,\"isCurrentUserAuthor\":false,\"canViewReports\":false"), isQuestionAccepted: false , childToViewInfo: id: "" , comments: JSON.parse("\"2174473\":\"rootParentId\":2174473,\"commentsCount\":5,\"comments\":[\"body\":\"Hi,\\n\\nProblem is solved. We did a telnet to the Mail Server at port 143. After logging in, we ran the following command:\\nLIST "" "*"\\n\\nThis listed the folders Inbox/Drafts/Sent Items etc.\\nSo we made the URL as:\\nimap:///Inbox\\n\\nThe username/password takes us to the relevant Inbox.\\nThis solved the problem.\\n\\n\\nRegards,\\nPuloma.\",\"author\":\"username\":\"former.member\",\"displayName\":\"Former Member\",\"groupIcons\":[],\"suspended\":true,\"isCurrentUser\":false,\"parentAuthor\":\"username\":\"former.member\",\"displayName\":\"Former Member\",\"groupIcons\":[],\"suspended\":true,\"isCurrentUser\":false,\"id\":2200230,\"creationDate\":1175685946000,\"activeRevisionId\":4495644,\"lastActivity\":1175685946000,\"parentId\":2177617,\"originalParentId\":2173618,\"likeCount\":0,\"visibility\":\"full\",\"depth\":0,\"attachments\":[],\"canVoteUpOrCancel\":false,\"relations\":\"canReport\":false,\"visibility\":\"full\",\"canEdit\":false,\"canUseDelete\":false,\"isLiked\":false,\"type\":\"comment\",\"canVoteUpOrCancel\":false,\"canConvertToAnswer\":false,\"canBeModerated\":false,\"canViewRevisions\":false,\"showInReply\":false,\"reported\":false,\"canCancelReport\":false,\"canDelete\":false,\"canVoteDownOrCancel\":false,\"canComment\":false,\"canViewReports\":false,\"isCurrentUserAuthor\":false,\"liked\":false,\"moderatorComment\":false],\"2173690\":\"rootParentId\":2173690,\"commentsCount\":1,\"comments\":[\"body\":\"Hi, \\n \\nConnection parameters are: \\nURL: imap:///XIINBOX/ \\n \\nDefault interface namespace: \\nDefault interface: DefaultInterface \\nQOS: EO. \\n \\nRegards, \\nPuloma.\",\"author\":\"username\":\"former.member\",\"displayName\":\"Former Member\",\"groupIcons\":[],\"suspended\":true,\"isCurrentUser\":false,\"parentAuthor\":\"username\":\"prabhu.s2\",\"displayName\":\"Prabhu S\",\"groupIcons\":[],\"suspended\":false,\"isCurrentUser\":false,\"id\":2173816,\"creationDate\":1175078114000,\"activeRevisionId\":4474842,\"lastActivity\":1175078114000,\"parentId\":2173690,\"originalParentId\":2173618,\"likeCount\":0,\"visibility\":\"full\",\"depth\":0,\"attachments\":[],\"canVoteUpOrCancel\":false,\"relations\":\"canReport\":false,\"visibility\":\"full\",\"canEdit\":false,\"canUseDelete\":false,\"isLiked\":false,\"type\":\"comment\",\"canVoteUpOrCancel\":false,\"canConvertToAnswer\":false,\"canBeModerated\":false,\"canViewRevisions\":false,\"showInReply\":false,\"reported\":false,\"canCancelReport\":false,\"canDelete\":false,\"canVoteDownOrCancel\":false,\"canComment\":false,\"canViewReports\":false,\"isCurrentUserAuthor\":false,\"liked\":false,\"moderatorComment\":false],\"2173981\":\"rootParentId\":2173981,\"commentsCount\":2,\"comments\":[\"body\":\"1. leave imap:// just put the server name, no folder2. There should not be any error message, when your inbox has no unread mails.\",\"author\":\"username\":\"stefan.grube\",\"displayName\":\"Stefan Grube\",\"groupIcons\":[],\"suspended\":false,\"isCurrentUser\":false,\"parentAuthor\":\"username\":\"former.member\",\"displayName\":\"Former Member\",\"groupIcons\":[],\"suspended\":true,\"isCurrentUser\":false,\"id\":2174298,\"creationDate\":1175082429000,\"activeRevisionId\":4475254,\"lastActivity\":1175082429000,\"parentId\":2174277,\"originalParentId\":2173618,\"likeCount\":0,\"visibility\":\"full\",\"depth\":0,\"attachments\":[],\"canVoteUpOrCancel\":false,\"relations\":\"canReport\":false,\"visibility\":\"full\",\"canEdit\":false,\"canUseDelete\":false,\"isLiked\":false,\"type\":\"comment\",\"canVoteUpOrCancel\":false,\"canConvertToAnswer\":false,\"canBeModerated\":false,\"canViewRevisions\":false,\"showInReply\":false,\"reported\":false,\"canCancelReport\":false,\"canDelete\":false,\"canVoteDownOrCancel\":false,\"canComment\":false,\"canViewReports\":false,\"isCurrentUserAuthor\":false,\"liked\":false,\"moderatorComment\":false]"), answerPager: answersCount: 5, page: 1, pageSize: 10, pageCount: 1, sort: "votes" , answers: JSON.parse("[\"body\":\"HI,\\ncheck the imap url ; and port.\\nEnter the address of the mail server, for example imap://imapserver/XIInBox.\\n\\nsee the below links\\n _nw2004s/helpdata/en/23/c093409c663228e10000000a1550b0/content.htm\\nRegards\\nChilla\",\"author\":\"username\":\"former.member\",\"displayName\":\"Former Member\",\"groupIcons\":[],\"suspended\":true,\"isCurrentUser\":false,\"id\":2174473,\"posted\":1175083728000,\"votes\":1,\"isAccepted\":false,\"isLocked\":false,\"userVoted\":\"\",\"relations\":\"score\":1,\"canCancelAccept\":false,\"canUnlock\":false,\"canUseDelete\":false,\"canVoteDownOrCancel\":false,\"canLock\":false,\"canAccept\":false,\"type\":\"answer\",\"canVoteUpOrCancel\":false,\"isCurrentUserAuthor\":false,\"attachments\":[],\"body\":\"whats ur connection parameter?\",\"author\":\"username\":\"prabhu.s2\",\"displayName\":\"Prabhu S\",\"groupIcons\":[],\"suspended\":false,\"isCurrentUser\":false,\"id\":2173690,\"posted\":1175077229000,\"votes\":0,\"isAccepted\":false,\"isLocked\":false,\"userVoted\":\"\",\"relations\":\"canCancelAccept\":false,\"canUnlock\":false,\"canUseDelete\":false,\"canVoteDownOrCancel\":false,\"canLock\":false,\"canAccept\":false,\"type\":\"answer\",\"canVoteUpOrCancel\":false,\"isCurrentUserAuthor\":false,\"attachments\":[],\"body\":\"Have you tried with a mail client like outlook express or firefox to access the mail server?Is the port 143 correct?Stefan\",\"author\":\"username\":\"stefan.grube\",\"displayName\":\"Stefan Grube\",\"groupIcons\":[],\"suspended\":false,\"isCurrentUser\":false,\"id\":2173981,\"posted\":1175079575000,\"votes\":0,\"isAccepted\":false,\"isLocked\":false,\"userVoted\":\"\",\"relations\":\"canCancelAccept\":false,\"canUnlock\":false,\"canUseDelete\":false,\"canVoteDownOrCancel\":false,\"canLock\":false,\"canAccept\":false,\"type\":\"answer\",\"canVoteUpOrCancel\":false,\"isCurrentUserAuthor\":false,\"attachments\":[],\"body\":\"Check in your email client, how the folders are named.You can have for example:imap:///Inbox for all mailsimap:///Inbox/XI for mails in a sub folderStefan\",\"author\":\"username\":\"stefan.grube\",\"displayName\":\"Stefan Grube\",\"groupIcons\":[],\"suspended\":false,\"isCurrentUser\":false,\"id\":2174391,\"posted\":1175083087000,\"votes\":0,\"isAccepted\":false,\"isLocked\":false,\"userVoted\":\"\",\"relations\":\"canCancelAccept\":false,\"canUnlock\":false,\"canUseDelete\":false,\"canVoteDownOrCancel\":false,\"canLock\":false,\"canAccept\":false,\"type\":\"answer\",\"canVoteUpOrCancel\":false,\"isCurrentUserAuthor\":false,\"attachments\":[],\"body\":\"Hi,\\n\\nProblem is solved. We did a telnet to the Mail Server at port 143. After logging in, we ran the following command:\\nLIST "" "*"\\n\\nThis listed the folders Inbox/Drafts/Sent Items etc.\\nSo we made the URL as:\\nimap:///Inbox\\n\\nThe username/password takes us to the relevant Inbox.\\nThis solved the problem.\\n\\n\\nRegards,\\nPuloma.\",\"author\":\"username\":\"former.member\",\"displayName\":\"Former Member\",\"groupIcons\":[],\"suspended\":true,\"isCurrentUser\":false,\"id\":2200237,\"posted\":1175686073000,\"votes\":0,\"isAccepted\":false,\"isLocked\":false,\"userVoted\":\"\",\"relations\":\"canCancelAccept\":false,\"canUnlock\":false,\"canUseDelete\":false,\"canVoteDownOrCancel\":false,\"canLock\":false,\"canAccept\":false,\"type\":\"answer\",\"canVoteUpOrCancel\":false,\"isCurrentUserAuthor\":false,\"attachments\":[]]"), answerForm: formAction: "/answers/2173618/post.json", textareaName: "body", textareaErrors: "", isAttachmentsEnabled: true, answerEditorialGuideline: title: "Before answering", content: "You should only submit an answer when you are proposing a solution to the poster\'s problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that your answer complies with our Rules of Engagement.", links: [ title: "Rules of Engagement", href: " -of-engagement.html", ] , answerMinBodyLength: '10', answerMaxBodyLength: '20000' , currentUser: sapInternalId: '', permissions: canVoteUpOrCancel: false, canVoteDownOrCancel: false, canModerate: false, , isVotedUp: false, isVotedDown: false , alerts: alertModeratorMinLength : "It should be given a proper explanation about why the content is inappropriate.", alertModeratorMinLengthValue : "10", alreadyReportedMessage : "You already have an active moderator alert for this content." , url: profileApiBaseUrl: ' -api.services.sap.com', followUnfollowQuestion: '/sap/nodeSubscription.json', isFollowingQuestion: '/sap/isFollowingNode.json', vote: voteUp: '/commands/0/voteup.json', voteDown: '/commands/0/votedown.json', cancelVote: '/commands/0/cancelvote.json' , rss: answers: '/feed/2173618/answers.rss', answersAndComments: '/feed/2173618/comments-and-answers.rss' , authorizeUploadContext: type: 'answer' , atMention: userSearchServiceUrl: ' ', currentUserName: '', useNewUSSCORS: true, atMentionDelayMs: 100, showMentionInRedactor: true , attachmentSettings: commentMaxAttachments: '2', answerMaxAttachments: '10', commentMaxAttachmentSizeBytes: '1048576', answerMaxAttachmentSizeBytes: '1048576', commentAttachmentsSizeBytesTotal: '2097152', answerAttachmentsSizeBytesTotal: '10485760' , editor: editorClipboardUploadEnabled: true ) )(); Home

  • Community

  • Ask a Question

  • Write a Blog Post

Login / Sign-up Search Questions and Answers 0 Former Member Mar 28, 2007 at 10:12 AM Error in Mail Adapter: IMAP 846 Views Follow RSS Feed Hi, 2ff7e9595c


0 views0 comments

Recent Posts

See All

Comments


bottom of page