Installing Mail Software

Installing Mail Software

During Red Hat Linux installation from this book's companion CD-ROMs, you have the option to install the necessary packages for the email. As described in Chapter 2, select the Mail Server package group when you are prompted for which components to install. The mail readers such as Ximian Evolution and Mozilla Mail come as part of the Graphical Internet package group. The mail readers such as pine and fetchmail are part of the Text Internet package group.

Cross Ref 

If you install the mail software during Red Hat Linux installation, you do not have to do much more to begin using the mail service. Otherwise, you can use the Red Hat Package Manager (RPM) to install individual packages. Chapter 21 describes how to use the rpm program to install new software.

To access the RPM files for mail, mount each CD-ROM with the following command:

mount /mnt/cdrom

Then, change the directory to /mnt/cdrom/RedHat/RPMS, where you will find the RPM files. Because Red Hat often moves RPMs around on the CDs, please check all the CDs to locate the RPMs. After mounting the CD-ROM at /mnt/cdrom, the RPMs are always in /mnt/cdrom/RedHat/RPMS. Some of the RPMs you may want to install are as follows (I show the RPM name; the actual filename starts with the RPM name, has a version number, and ends with a .rpm extension):

  • fetchmail (a mail retrieval and forwarding utility)

  • imap (an Internet Message Access Protocol server)

  • mailx (a mail-user agent)

  • pine (a versatile mail and news program)

  • procmail (a local mail-delivery package, meant to be invoked directly by sendmail or from a .forward file to process mail automatically; for example, to delete all mail from a specific address)

  • sendmail (a complex mail-transport agent)

  • sendmail-cf (configuration files for sendmail)

  • sendmail-doc (documentation for sendmail)

You probably have already installed many of these packages. For this chapter, you should install sendmail.

Insider Insight 

To determine whether sendmail is installed on your system, type the following command:

rpm -q sendmail

If the output shows sendmail, it's installed. In the preceding example, sendmail version 8.12 is installed on the system.