HP-UX Mailing Solutions White Paper
3. Check the user's mailbox on the IMAP server.
1. Create an account on the mail server that requires a mail service:
#useradd –m -c "UW-IMAP test" username
2. Set the password for the username:
#passwd username
Changing password for username
New password: ********
Re-enter new password: ********
Passwd successfully changed
3. Establish a telnet connection to the IMAP server and login using the user's account to
check the user's mailbox:
# telnet 0 143
Trying...
Connected to 0.
Escape character is '^]'.
* OK [CAPABILITY IMAP4REV1 LITERAL+ SASL-IR LOGIN-REFERRALS STARTTLS] localhost IMAP4rev1 2007a.403
at Fri, 27 Jun 2008 14:25:54 +0530 (IST)
. login <username> <password>
. OK [CAPABILITY IMAP4REV1 LITERAL+ IDLE UIDPLUS NAMESPACE CHILDREN MAILBOX-REFERRALS BINARY UNSELECT
ESEARCH WITHIN SCAN SORT THREAD=REFERENCES THREAD=ORDEREDSUBJECT MULTIAPPEND] User <username>
authenticated
. select inbox
* 4 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1214553448] UID validity status
* OK [UIDNEXT 5] Predicted next UID
* FLAGS (\Answered \Flagged \Deleted \Draft \Seen)
* OK [PERMANENTFLAGS (\* \Answered \Flagged \Deleted \Draft \Seen)] Permanent flags
* NO Mailbox vulnerable - directory /var/mail must have 1777 protection
. OK [READ-WRITE] SELECT completed
. fetch 1 full
* 1 FETCH (FLAGS (\Seen) INTERNALDATE "27-Jun-2008 13:26:47 +0530" RFC822.SIZE 1316 ENVELOPE ("Fri,
27 Jun 2008 07:56:32 +0000" "testing imap - mail frm outluk" (("M, Aneesha (STSD)" NIL "aneesha.m"
"hp.com")) (("M, Aneesha (STSD)" NIL "aneesha.m" "hp.com")) (("M, Aneesha (STSD)" NIL "aneesha.m"
"hp.com")) (("aneesha@inet30.ind.hp.com" NIL "aneesha" "inet30.ind.hp.com")) NIL NIL NIL
"<8624CF9670931D48A9AFF6F9F64E65C301462DAEDB95@G1W0492.americas.hpqcorp.net>") BODY ("TEXT" "PLAIN"
("CHARSET" "us-ascii") NIL NIL "8BIT" 4 2))
. OK FETCH completed
. fetch 2 body
* 1 FETCH (BODY ("TEXT" "PLAIN" ("CHARSET" "US-ASCII") NIL NIL "7BIT" 835 25))
. OK FETCH completed
. logout
* BYE localhost.ind.hp.com IMAP4rev1 server terminating connection
. OK LOGOUT completed
Connection closed by foreign host.
The Post Office Protocol Version 3
The Post Office Protocol version 3 (POP3) is also a standard protocol for receiving email similar
to IMAP and is also a client/server protocol in which email is received and stored in the servers.
In POP3, the mail is saved in a mailbox on the remote server until the mailbox is checked for
mails. The mail is immediately downloaded to a mail client and is no longer retained on the
server.
While IMAP can be considered as a remote file server, POP3 can be considered as a
"store-and-forward" service.
POP3 provides the following features:
• Internet connection can be closed immediately after the messages are downloaded to the
computer.
• No disk usage charges on the servers.
Configuring POP3 on an HP–UX System
This section discusses the prerequisites and procedure to configure POP3 on an HP-UX system.
12