- Table of Contents
- Copyright
- About the Lead Authors
- About the Contributing Authors
- Acknowledgments
- Tell Us What You Think!
- Introduction
- I. Red Hat Linux Installation and User Services
- Chapter 1. Introduction to Red Hat Linux
- Chapter 2. Installation of Your Red Hat System
- Chapter 3. LILO and Other Boot Managers
- Chapter 4. Configuring the X Window System, Version 11
- Chapter 5. Window Managers
- Chapter 6. Connecting to the Internet
- Chapter 7. IRC, ICQ, and Chat Clients
- Chapter 8. Using Multimedia and Graphics Clients
- II. Configuring Services
- Chapter 9. System Startup and Shutdown
- Chapter 10. SMTP and Protocols
- Chapter 11. FTP
- Chapter 12. Apache Server
- Chapter 13. Internet News
- Chapter 14. Domain Name Service and Dynamic Host Configuration Protocol
- Chapter 15. NIS: Network Information Service
- Chapter 16. NFS: Network Filesystem
- Chapter 17. Samba
- III. System Administration and Management
- Chapter 18. Linux Filesystems, Disks, and Other Devices
- Chapter 19. Printing with Linux
- Chapter 20. TCP/IP Network Management
- Chapter 21. Linux System Administration
- Chapter 22. Backup and Restore
- Chapter 23. System Security
- IV. Red Hat Development and Productivity
- Chapter 24. Linux C/C++ Programming Tools
- Chapter 25. Shell Scripting
- Chapter 26. Automating Tasks
- Chapter 27. Configuring and Building Kernels
- Chapter 28. Emulators, Tools, and Window Clients
- V. Appendixes
- A. The Linux Documentation Project
- B. Top Linux Commands and Utilities
- C. The GNU General Public License
- D. Red Hat Linux RPM Package Listings
IMAP
As noted at the beginning of the chapter, POP was a good first step to enable people on non-UNIX operating systems to read their UNIX-based email. But as time went on and distributed computing really took off, the deficiencies stood out. The POP server would not keep the read or unread state of messages. Messages would be downloaded to the user's PC and deleted off the server, so when the user moved to another PC, he had to move his mailbox between the two different machines. In this day and age of remote communication, people found that accessing email from home over a modem connection could be painfully slow if there were many messages to download, and they could not access the email folders they created on their work PC from home.
The IMAP protocol now allows people to store all their folders online. This makes it possible to access your email on your laptop while travelling, at home, or at work without having to transfer the messages back and forth. It works by transferring all the message headers of the folder you are reading. Then, using your IMAP client software, you can select a message and it will appear on your screen. The main advantage, of course, is that the messages are left on the server so you can access them wherever you happen to be.
Similarly to the POP3 protocol, IMAP (also commonly referred to as IMAP4) is also an RFC standard, so it's a transparent protocol that can be added to any messaging system. There are IMAP implementations for not just UNIX systems, but for Microsoft Exchange, Novell Groupwise, and countless others.
Configuring an IMAP Server
Configuring an IMAP server on your Red Hat Linux system is relatively straightforward. You need to make sure that the imapd RPM is installed:
[root@gonzo /] # rpm -q imap imap-4.7c2-3
If you get similar output, you are in business. Otherwise, you will need to install imapd, which is on your Red Hat Linux CD-ROMs.
You also need to check that imapd is not disabled in your /etc/xinetd.d/imap file. It should have the following contents:
service imap
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/sbin/imapd
log_on_success += DURATION USERID
log_on_failure += USERID
}
If you need to change it then have xinetd reload its configuration files, which you can do like so:
[root@gonzo /] # /etc/init.d/xinet reload
By now, imapd is running and you should be able to connect to it. This is similar to the way you tested the connection to your POP server in the previous section.
Type in the following:
telnet imapserver imap
imapserver is the name of the machine running the imapd program. You should get a response similar to the following:
* OK imapserver IMAP4rev1 v11.241 server ready
This result means the IMAP server has responded and is awaiting an instruction (again, this is normally done by the client mail reader). If you want to test the authentication service, try to log in as yourself and see whether the service registers your current email box. For example, to log in as sshah with the password mars1031, enter
A001 user sshah mars1031 A001 OK LOGIN completed
You are now logged in to your IMAP server. Since you were just testing, you can log out now by entering this:
A002 logout * BYE imapserver IMAP4rev1 server terminating connection
Your IMAP server is now set up and ready to use!
Mail Retrieval | Next Section

Account Sign In
View your cart