ZDNet UK


Skip to Main Content

ZDNet.co.uk - Winner of Best Business Website 2007
  1. Home
  2. News
  3. Blogs
  4. Reviews
  5. Prices
  6. Resources
  7. Community
  8. My ZDNet

 

ZDNet UK RSS Feeds


IT Jobs

Office applications Toolkit

Replace POP3 with IMAP to extend the reach of users' email

John Locke

Published: 08 May 2003 11:43 BST

  • Email
  • Trackback
  • Clip Link
  • Print friendly
  • Post Comment

When setting up your own email system, there can be some difficulties even after you have the server set up on your network, in terms of sending and receiving mail for local users.

At this juncture, you have to make sure that the mail is going to the appropriate user. For instance, Postfix accepts incoming mail for local users and relays mail from local users out to wherever it's going. When it receives mail, it drops it into a mailbox file for the UNIX user account. To read this mail, you need to read the mailbox file directly, with a program that is capable of reading the raw file.

However, even with the powerful multiuser capabilities of Linux, you don't want to force your users to log on to the server and use a text-based mail reader, as you may end up on the street.

Fortunately, there are several email protocols for retrieving email from a server. By far, the most common is Post Office Protocol, otherwise known as POP3. Nearly all mail clients speak POP3. With POP3, the mail client connects to the server, downloads all new email, and disconnects.

This works fine for people who use only a single computer for all of their email, but if they want to check their email from any other computer, they won't be able to get to all of their messages. They also risk having their messages scattered across multiple computers. Using Internet Message Access Protocol (IMAP) as an alternative is a good solution to this problem. In this article, I am going to add an IMAP server to my current email setup and configure virtual users using a MySQL database.

What is IMAP?
IMAP provides a compelling alternative to POP3. With IMAP, all mail stays on the server, and clients manipulate the status. When you connect with IMAP clients from different computers, you see the same set of folders and all of your mail. If you read a message on one computer, it is read when you check it from another. If you delete it on one, it's deleted everywhere. For people who work with email offline or over a dialup connection, IMAP has many solutions for managing email. Mail clients can cache messages and then update message status on the server when they reconnect. Messages can be left on the server and deleted while still being unread, without having to download first. The main downside of IMAP is that leaving mail on the server consumes a lot more disk space in one place, rather than being distributed across a bunch of clients. This makes backups much easier, but you may have to add disk space or implement quotas.

Courier-IMAP
Courier-IMAP is the IMAP server I've chosen for this email system. It provides both IMAP and POP3 servers, so your users can choose either. It can access mail for users who don't have a local UNIX account ("virtual" users), and by putting the account information in a MySQL database, it can share these accounts with Postfix.

Courier-IMAP uses a directory-based file format called Maildir instead of traditional UNIX mailboxes. By using individual files for each mail, Maildir mailboxes don't have locking issues, and opening a large mailbox is fast.

You can download the source tarball for Courier-IMAP. Courier-IMAP is one part of a complete mail suite, but most of the other parts of the suite are not as widely used as the IMAP server. It also supports SSL-encrypted connections if you compile against the OpenSSL libraries.

Next

Previous

1 2


  • Email
  • Trackback
  • Clip Link
  • Print friendly Print with HP

Did you find this article useful?
98 out of 191 people found this useful


Company/Topic Alerts

Create a new alert from the list below:









Related Jobs

Websphere Developer - Message Broker/MQ - West Midlands

Currently, they are working on enhancing their web presence offering customers a more direct route to their accounts. Java / Websphere / Message ...

Web Consultant- HTML, Java Script, SQL- Home based- Excellent

You will come from a software development background and will have strong experience with some/all of the following technologies: HTML, Java Script, ...

Oracle Financials and SCM Consultants

All qualified applicants will receive consideration for employment without regard to race, color, religion, gender, gender identity or expression, ...

Vista Upgrade Blog

The game's up for Vista

I got an interesting invite last night to the media launch of a dedicated gaming centre housed in an HMV store in central London. Resplendent with around 80 Quad core PCs and Dual... More

1 comment

Windows Driver Updates

Because of my recent adventures with Windows Vista on my Lifebook, I've had to learn about and deal with the differences between Vista and XP in third-party device driver distribution... More

2 comments

Windows XP SP3 Installed

I have downloaded and installed Service Pack 3 for Windows XP Professional on my Fujitsu Lifebook S6510. Everything went smoothly, and it seems to work just fine. I don't see anything... More

Post a comment

Discussions

John Molloy John Molloy

Bit Odd to be honest

Friday 16 May 2008, 5:44 PM

2 comments
Macbrewer Macbrewer

Not really a security problem

Friday 16 May 2008, 4:17 PM

2 comments
harpless harpless

interesting..

Friday 16 May 2008, 4:06 PM

3 comments

Featured Talkback

"We don't recommend specific technologies — we promote the use of technology per se." What sort of nonsense is this?? Every Becta endorsed IT supplier to schools is a Microsoft shop. Every single one.

By: 1000193068

Read full story:
Becta takes Microsoft to the OFT