Internet Mail Protocols
There are currently three main Internet Email Protocols, SMTP, POP3, and IMAP4. Also there is ODMR which is a variation of SMTP. (There are several other mail protocols, eg UUCP which are currently less widely used, and aren’t currently supported by VPOP3). IMAP4 is only supported by VPOP3 Enterprise, not by VPOP3 Standard.
SMTP Protocol
SMTP (Simple Mail Transfer Protocol) is really intended for permanent connections to the Internet. The SMTP ‘client’ connects to an SMTP ‘server’ to send a message. There is no way to request a specific message using SMTP, but there are extensions to request a server to start sending any messages it has.
When messages are sent using SMTP it is sent in two parts:
1) An Envelope – this contains the email address it was sent from (typically for error reports) and a list of people to receive the message. This is not normally seen by users.
2) The message Data – this contains the message that you typically see.
The Envelope may contain a copy of the information in the Data’s From: and To: header fields, but it may contain other information which is not contained in the message at all (for instance, for mailing list messages or if BCC addressing is used).
If you have an SMTP account with your Internet Provider, then you need to run an SMTP ‘server’ (e.g. VPOP3) on your PC, and then somehow tell your Internet Provider to start sending messages to it after you’ve connected. Some Internet Providers can automatically detect you dialing into them, and immediately start sending mail to your SMTP server. Other Internet Providers need you to issue an SMTP command such as ETRN to their server to trigger mail delivery.
A few Internet Providers require a non-standard action, such as sending a ‘Finger’ command to their server to trigger mail delivery. You can use an external program, set as the VPOP3 Post-Connection Extension to issue this command.
Once SMTP mail delivery has started there is really no way for the server to reject messages based on any other criteria apart from the data contained in the Envelope (i.e. From or To addresses). Also, once the message has been sent to an SMTP server, the client typically discards its copy.
This means that if VPOP3 is running as your SMTP server to receive mail from your Internet Provider, some useful features such as being able to limit message download size, the Download Rules, leaving messages on the ISP server etc, cannot be used. VPOP3’s SMTP Rules can perform many actions you may require, but they are not as flexible as Download Rules, because VPOP3 cannot see the message header without receiving the entire message.
When sending messages to another site, there are really two ways of doing this, both of which are typically accepted:
The mail server can send the message directly to the destination site’s mail server
The mail server can send the message to a relay-server which then sends the message to the destination site.
We recommend the use of the second method. Some of the reasons for this are:
It is easier to configure, and fits in with most users’ understanding of how mail works.
It is a lot quicker over a dial-up connection. If the first method is used, then any message to more than one recipient typically has to be sent multiple times (once for each recipient). There is also a lot of querying of DNS servers which can be time consuming.
Many Internet Providers (eg AOL) will reject mail that comes directly from a computer on a dial-up connection, as an anti-spam protection method.
ODMR Protocol
The ODMR (On Demand Mail Relay) protocol is a variation on SMTP which has been designed to allow SMTP mail delivery to a dynamic IP address. With ODMR, the ODMR client (VPOP3) connects to an ODMR server (at the ISP), logs on with the ISP account details, and from then on acts identically to an SMTP server (so the ODMR client becomes the SMTP server, and the ODMR server becomes the SMTP client).
This allows the advantages of SMTP without requiring a static IP address.
POP3 Protocol
POP3 (Post Office Protocol Version 3) was created for dial-up Internet accounts because of the limitations with the SMTP protocol. When collecting mail from an ISP using POP3, the ‘client’ is the PC at the user’s end, and it is in total control of what messages it receives and which ones it doesn’t.
The POP3 client can also typically view message headers without downloading the entire message, see the message size before downloading it, delete messages without downloading them, or leave messages on the server after downloading them. Because of these POP3 facilities, VPOP3 can do a lot more to help you.
One of the normal problems which occurs if multiple email addresses are directed to a single POP3 mailbox is that the SMTP Envelope (see above) is lost when the message is placed in the mailbox. This means that the explicit message routing information is lost, and all that VPOP3 has to go on is the data in the message headers (eg To, Cc etc). This can cause problems if you receive messages from mailing lists or which include Bccs. Some ISPs get around these problems by extending the POP3 protocol (eg Demon Internet Services do this) or adding special message header fields which VPOP3 can use if you tell it about them.
IMAP4 Protocol
IMAP4 (Internet Mail Access Protocol V4) is an email protocol which is sometimes used instead of the POP3 protocol. With IMAP4 email is stored on the mail server and can be accessed from any IMAP4 email client on the network. With POP3 email is downloaded to the mail client where it is accessed.
When using IMAP4 many of the functions of the email client are performed by the mail server instead. This includes things such as searching for messages, moving messages between folders etc.
In most cases the user will not know any difference between using IMAP4 or using POP3, so use whichever is more appropriate.
IMAP4 has some advantages in some situations:
- Because all email is stored on the mail server it is easier to backup all email in one batch.
- Users can access their email from anywhere on the network, so if your users do not have a fixed computer to use, IMAP4 can be the solution
- Users can share mailboxes. The IMAP4 protocol allows several people to log onto a mailbox at once to read messages. This can be useful for ‘noticeboard’ type applications. Access Control Lists allow you to restrict which users can do which tasks in a mailbox.
There are some disadvantages to using IMAP4:
- Because all mail has to be transferred over the network as it is read it can be slower than reading mail from the local PC where it has been downloaded to using POP3
- The load on the network is usually much more. Mail is transferred every time it is read, so if a user reads a message at 10 different times, the message is transferred over the network 10 times rather than just once.
- The load on the mail server is much more than with the POP3 protocol. Searching for messages etc will increase the load even more
- The mail server needs much more mail storage space. When using POP3 the mail is stored on a user’s own PC so the server is not usually affected by large amounts of mail.
- IMAP4 was not originally designed for remote users. Some email clients allow offline access to IMAP4 mailboxes but because this is not what the protocol was designed for, it can sometimes be unintuitive. The POP3 protocol was designed for remote users, so it is often more efficient and more intuitive.
- The IMAP4 protocol is not supported by the Standard VPOP3 software, only by VPOP3 Enterprise.