 
Subject
First, we grab the source from the UW distribution link on here:
[root@srv-33 src]# ls
imap.tar.Z imap-utils.tar.Z
[root@srv-33 src]# tar -xzf imap.tar.Z
[root@srv-33 src]# ls
imap-2001.BETA.SNAP-0105251616 imap.tar.Z imap-utils.tar.Z
[root@srv-33 src]# mkdir imaputils
(We will deal with imaputils in a different section.)
[root@srv-33 src]# mv *util* imaputils
mv: cannot move `imaputils' to a subdirectory of itself, `imaputils/imaputils'
[root@srv-33 src]# ls
imap-2001.BETA.SNAP-0105251616 imap.tar.Z imaputils
[root@srv-33 src]# cd imap-2*
[root@srv-33 imap-2001.BETA.SNAP-0105251616]# make slx
Applying an process to sources...
tools/an "ln -s" src/c-client c-client
tools/an "ln -s" src/ansilib c-client
tools/an "ln -s" src/charset c-client
tools/an "ln -s" src/osdep/unix c-client
.
.
.
make[2]: Leaving directory `/usr/local/src/imap-2001.BETA.SNAP-0105251616...
[root@srv-33 imap-2001.BETA.SNAP-0105251616]# mkdir /usr/local/sbin/imapd
[root@srv-33 imap-2001.BETA.SNAP-0105251616]# mkdir /usr/local/sbin/ipopd
[root@srv-33 imap-2001.BETA.SNAP-0105251616]# cd ipopd
[root@srv-33 ipopd]# ls
ipop2d ipop2d.c ipop2d.o ipop3d ipop3d.c ipop3d.o Makefile
[root@srv-33 ipopd]# cp ipop3d /usr/local/sbin/ipopd/
[root@srv-33 ipopd]# cp ipop2d /usr/local/sbin/ipopd/
[root@srv-33 ipopd]# cd ..
[root@srv-33 imap-2001.BETA.SNAP-0105251616]# ls
an CPYRIGHT ipopd makefile.ntk makefile.wce README tools
c-client docs Makefile makefile.os2 mtest src WARNING
CONTENTS imapd makefile.nt makefile.w2k OSTYPE SUPPORT
[root@srv-33 imap-2001.BETA.SNAP-0105251616]# cd imapd
[root@srv-33 imapd]# cp imapd /usr/local/sbin/imap
Now, we need to start these services automatically. For Red Hat, we just add ipop2d, ipop3d, and imapd to /etc/xinetd.d:
[root@srv-33 xinetd.d]# cat ipop2d
# default: on
# description: The pop server answers pop requests.
service pop2
{
socket_type = stream
wait = no
user = root
server = /usr/local/sbin/ipopd/ipop2d
disable = no
}
[root@srv-33 xinetd.d]# cat ipop3d
# default: on
# description: The pop3 server answers pop3 requests.
service pop3
{
socket_type = stream
wait = no
user = root
server = /usr/local/sbin/ipopd/ipop3d
disable = no
}
[root@srv-33 xinetd.d]# cat imapd
# default: on
# description: The imap server answers imap requests.
service imap
{
socket_type = stream
wait = no
user = root
server = /usr/local/sbin/imapd/imapd
disable = no
}
[root@srv-33 xinetd.d]#
Notice that we are starting both pop and imap services. The danger with pop is that users can download all of their mail locally, where it won't get backed up. Since some of you may prefer the flexibility of pop, we are going to include installation of pop in these intructions. Let's make sure all is good and the services start up after we reboot.
[u-1@srv-1 u-1]$ telnet srv-33 109
Trying 10.50.100.51...
Connected to srv-33.signalq.com.
Escape character is '^]'.
+ POP2 srv-33.signalq.com v2001.62 server ready
QUIT
+ Sayonara
Connection closed by foreign host.
[u-1@srv-1 u-1]$ telnet srv-33 110
Trying 10.50.100.51...
Connected to srv-33.signalq.com.
Escape character is '^]'.
+OK POP3 srv-33.signalq.com v2001.76 server ready
QUIT
+OK Sayonara
Connection closed by foreign host.
[u-1@srv-1 u-1]$ telnet srv-33 143
Trying 10.50.100.51...
Connected to srv-33.signalq.com.
Escape character is '^]'.
* PREAUTH [CAPABILITY IMAP4REV1 IDLE NAMESPACE MAILBOX-REFERRALS SCAN SORT
THREAD=REFERENCES THREAD=ORDEREDSUBJECT MULTIAPPEND] srv-33.signalq.com
IMAP4rev1
2001.305 at Wed, 30 May 2001 18:04:04 -0700 (PDT)
. logout
* BYE srv-33.signalq.com IMAP4rev1 server terminating connection
. OK LOGOUT completed
Connection closed by foreign host.
[u-1@srv-1 u-1]$
Setting up IMAP on the client side is quite easy. With Star Office, Netscape, and Outlook, you simply specify the name of the IMAP server and the user account. It really is that easy.
Let's send email to u-1:
[root@srv-33 /root]# mail u-1
Subject: test 2 u-1
this is a test of IMAP
Cc:
[root@srv-33 /root]#
Here we see the email show up in Outlook, as well as the configuration dialog boxes.
If you want to check this with Pine, just edit .pinerc in your home directory
so that inbox-path points to the correct IMAP server
(inbox-path={srv-33}inbox),
then, simply run Pine, and you can check your mail:
PINE 4.33 MESSAGE TEXT Folder: INBOX Message 4 of 4 ALL NEW
Date: Thu, 31 May 2001 08:24:35 -0700
From: root [email protected]>
To: [email protected]
Subject: test 2 u-1
this is a test of IMAP
[ALL of message]
? Help < MsgIndex P PrevMsg - PrevPage D Delete R Reply
O OTHER CMDS > ViewAttch N NextMsg Spc NextPage U Undelete F Forward
All is happy.
| People: | |
| Places: | |
| Things: | |
| Times: | |
|
|