Running configuration tests
Run a few tests to verify the servers are ready for operation.
- First, verify the servers are listening on their ports.
To do this, type the following commands at a command prompt, pressing the Enter key after each command:
netstat -a | grep imap netstat -a | grep pop
The following is the output from the netstat commands:
tcp 0 0 *.imap2 *.* LISTEN tcp 0 0 *.imaps *.* LISTEN tcp 0 0 *.pop3 *.* LISTEN tcp 0 0 *.pop3s *.* LISTEN
- If you do not receive similar output, recheck the entries in the /etc/inetd.conf file, and then rerun the refresh -s inetd command.
- To test the configuration of the imapd server, use Telnet
to access the imap2 server, port
143
(for IMAPDS, Telnet port993
).When you connect using Telnet, you get the imapd prompt. You can then enter the IMAP Version 4 commands as defined in RFC 1730. To run a command, type a period (.), followed by a space, then token, command name, and any parameters. The token is used to sequence the command name. For example:. token CommandName parameters
Passwords are echoed when you Telnet into the imapd server.
In the following Telnet example, you must provide your own password where id_password is indicated in the login command.Tip: For IMAPDS, the command and output varies slightly.telnet e-xbelize 143 Trying... Connected to e-xbelize.austin.ibm.com. Escape character is '^]'. * OK e-xbelize.austin.ibm.com IMAP4 server ready . 1 login id id_password . OK . 2 examine /usr/spool/mail/root * FLAGS (\Answered \Flagged \Draft \Deleted \Seen) * OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen \*)] * 0 EXISTS * 0 RECENT * OK [UIDVALIDITY 823888143] . OK [READ-ONLY] Examine completed . 3 logout * BYE Server terminating connection . OK Logout completed Connection closed.
- To test the configuration of the pop3d server, use Telnet
to access the POP3 port,
110
(for POP3DS, Telnet port995
).When you connect using Telnet, you get the pop3d prompt. You can enter the POP commands that are defined in RFC 1725. To run one of the commands, type a period (.), followed by a space, and then the command name. For example:. CommandName
Passwords are echoed when you Telnet into the pop3d server.
In the following Telnet example, you must provide your own password where id_password is indicated in the pass command.Tip: For POP3DS, the command and output varies slightly.telnet e-xbelize 110 Trying... Connected to e-xbelize.austin.ibm.com. Escape character is '^]'. +OK e-xbelize.austin.ibm.com POP3 server ready user id +OK Name is a valid mailbox pass id_password +OK Maildrop locked and ready list +OK scan listing follows . stat +OK 0 0 quit +OK Connection closed.