Product: ModusMail
Version & Build: All
Telnet commands can be used to test IMAP4 connections to the mail server to a) see if we can successfully open an IMAP session on the server and b) if we can access a valid email address.
Below you'll find the standard syntax used for the telnet commands:
Example: The IMAP connection for yourdomain.com is configured on IP 10.0.0.9, port 143.
On the ModusMail server, open a DOS command window (e.g., Start > Run > cmd):
1. Use the telnet command to open a connection to the mail server, e.g. type: telnet 10.0.0.9 143 <Enter>
Note: if using Windows 2000, you may want to use the following set of commands to turn the local echo function on and display what you're typing. Local echo is enabled on Windows 2003 and XP by default.
- From the DOS prompt, type telnet <Enter>
- Type set local_echo <Enter>
- Type open 10.0.0.9 143 <Enter>
2. Important notes: Telnet does not allow backspaces, so if you make a mistake when entering the commands, start over. Each IMAP command line normally begins with a sequential number followed by a space, but you can use ? instead of numbers.
3. When the telnet screen opens, you should see the mail server's banner, similar to: * OK machine.yourdomain.com ModusMail IMAP4S 4.2.420.0 ready (If you do not get a banner, check the IP address and firewall configuration and start the test again)
4. Login using the command '? login <username> <password>':
-
If the mailbox is located in a domain that has its own unique IP, enter only the username, e.g. ? login betsy test
-
If the mailbox is located in a virtual domain (that does not have its own IP), enter the full email address as the username, e.g. ? login betsy@abc.com test
5. The list command can be used to list all available folders. You could specify the name of the directory where mail is stored or enter the following: ? list "" "*"
6. Use the select command to display the contents of a specific folder, e.g. enter ? select inbox
7. Use the fetch command to display specific message information. Enter the message number followed by one of the following tags:
Flags - displays all message flags such as answered, flagged, deleted, seen or draft
Examples:
To fetch the flags on message #1, enter: ? fetch 1 flags
To fetch the flags on all messages in the Inbox, enter: ? fetch 1:* flags
Full - displays the full header information, enter: ? fetch 1 full
Body[text] - displays the message body (content), enter: ? fetch 1 body[text]
8. Logout using the 'logout' command, enter: ? logout
This is what it looks like on-screen:
* OK vop-tech-mm.vircom.com ModusMail IMAP4S 4.2.420.0 ready ? login betsy@abc.com test ? OK LOGIN completed ? list "" "*" * LIST (\Select) "/" Drafts * LIST (\Select \Noinferiors) "/" Inbox * LIST (\Select) "/" "Sent Items" ? OK LIST completed ? select inbox * FLAGS (\Answered \Flagged \Deleted \Seen \Draft \*) * 9 EXISTS * 0 RECENT * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] * OK [UNSEEN 5] Message 2 is first unseen * OK [UIDNEXT 10] Predicted next UID * OK [UIDVALIDITY 25627141] UIDs are valid ? OK [READ-WRITE] opened inbox ? fetch 2 flags * 2 FETCH (FLAGS ()) ? OK FETCH completed ? fetch 1:* flags * 1 FETCH (FLAGS (\Seen)) * 2 FETCH (FLAGS ()) * 3 FETCH (FLAGS ()) * 4 FETCH (FLAGS (\Seen)) * 5 FETCH (FLAGS (\Seen)) * 6 FETCH (FLAGS ()) * 7 FETCH (FLAGS (\Seen)) * 8 FETCH (FLAGS ()) * 9 FETCH (FLAGS ()) ? OK FETCH completed ? fetch 1 body[text] * 1 FETCH (BODY[text] {8244} This is a multi-part message in MIME format.
--=_Part_6f93b70c$03c6$43fe$ae65$6a4ef7de7304 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit
QUARANTINE REPORT
This is a spam and virus report sent to betsy@abc.com on Sat Sep 10 04:00:00 2005
xxxx (the full html content of the form is displayed)
? OK FETCH completed ? logout * BYE IMAP4 Server logging out ? OK LOGOUT completed
|