Because several software packages are available for every major service available in Linux (such as mail, printing, and so on), there will be times when people using the system will prefer one service over another. Software packages that have been designed to work with the alternatives system can be configured in Fedora to let an administrator choose which of the alternatives to a particular service he or she wants to use by default.
Beginning with Red Hat Linux 7.3, which was the first version to offer the alternatives feature, two major services were configured to use alternatives: mail transport and printing services. The alternatives facility let system administrators choose the following,
Mail Transport Agent (MTA
) — If the sendmail, exim and postfix mail transport
Printing — If both LPRng and CUPS printing services are installed, you can choose which service is the default for printing documents.
As an administrator, you still need to configure each alternative service to work. Descriptions for configuring sendmail and postfix mail-transport agents are contained in Chapter 19. Information on setting up the CUPS printing service is in Chapter 17. (LPRng is no longer delivered with Fedora , although it is still available from sites such as
In terms of setting up the alternatives side of mail services, much of the work of creating links so that the services can be
Because much of the configuration has been done in advance, the first step in switching between the different mail services installed on your computer is only a couple of clicks away. To switch the default mail services on your computer, do the following:
To switch mail service, type system-switch-mail . The switcher window appears.
Click on the service you want to switch to — Sendmail, Exim or Postfix for mail. (If the one you want is already selected, you can just cancel.) If the switch is successful, a pop-up window
Click OK to complete the switch and close the pop-up window.
The
exim for the Exim mail service
sendmail for the Sendmail mail service
postfix for the Postfix mail service
To stop the old service so that the new one can take over, type the following (replacing
service
with the
# /etc/init.d/ service stop
To start the new service, type the following (replacing service with the name of the service you want to start):
# /etc/init.d/ service start
Providing that the new service was configured properly, it should now be available to the users of your computer.
The mail-transport services that the alternatives facility allows you to change rely on many of the same command
So, to the