Test Connection to IMAP Server ============================== Author: Momchil Ivanov Date : 2019.10.04 Introduction ------------ This article contains notes on how to test connection to IMAP server. Basic authentication via telnet ------------------------------- Execute telnet to connect to the imap server, "I: " is prepended to the issued commands, "O: " is prepended to the output from the server: $ telnet imap.example.com 143 O: * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ AUTH=PLAIN] Dovecot ready. I: a1 LOGIN MyUsername MyPassword O: a1 OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY PREVIEW=FUZZY LITERAL+ NOTIFY] Logged in I: a2 LIST "" "*" O: * LIST (\HasNoChildren) "." "INBOX" O: a2 OK List completed (0.029 + 0.000 + 0.028 secs). I: a3 EXAMINE web O: * FLAGS (\Answered \Flagged \Deleted \Seen \Draft) O: * OK [PERMANENTFLAGS ()] Read-only mailbox. O: * 1 EXISTS O: * 0 RECENT O: * OK [UIDVALIDITY 1570177026] UIDs valid O: * OK [UIDNEXT 5] Predicted next UID O: a3 OK [READ-ONLY] Examine completed (0.002 + 0.000 + 0.001 secs). I: a4 FETCH 1 BODY[] O: * 1 FETCH (BODY[] {888} O: Return-Path: O: Received: from t430.local ([10.75.23.6]) O: by mail.xaxo.eu (8.15.2/8.15.2) with ESMTP id x94D6npf021867 O: for ; Fri, 4 Oct 2019 15:06:49 +0200 (CEST) O: (envelope-from momchil@xaxo.eu) O: From: Momchil Ivanov O: Subject: Test email O: To: momchil@xaxo.eu O: Message-ID: O: Date: Fri, 4 Oct 2019 15:07:24 +0200 O: User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 O: Thunderbird/60.6.1 O: MIME-Version: 1.0 O: Content-Type: text/plain; charset=utf-8; format=flowed O: Content-Transfer-Encoding: 7bit O: Content-Language: en-US O: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED O: autolearn=unavailable autolearn_force=no version=3.4.2 O: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.xaxo.eu O: O: This is a test email message. O: O: O: Regards, O: O: Author O: O: ) O: a4 OK Fetch completed (0.004 + 0.000 + 0.003 secs). I: a5 LOGOUT O: * BYE Logging out O: a5 OK Logout completed (0.001 + 0.000 secs).