Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX System Administrator's Guide: Configuration Management: HP-UX 11i Version 3 > Chapter 7 Configuring Mail

Configuring a System to Receive Electronic Mail

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

Configuring a system in your workgroup to receive e-mail is a bit more complicated than configuring it to send e-mail. First you must determine two things:

  1. Which type of networking topography you are going to use (see “Networking Topographies”)

  2. Where the system fits in to the topography: the electronic mail hub, a client in a workgroup served by a hub, or a standalone system.

Using that information, begin by selecting the appropriate networking topography below:

Central Mail Hub Topography (Receiving E-mail)

With this type of electronic mail system, a single computer serves as the place where all users in a workgroup send and receive e-mail. To do this, users either log in to the hub computer, or NFS mount their electronic mailboxes to local (client) systems. All outgoing e-mail from the entire workgroup, even mail sent from a system that has NFS mounted an electronic mailbox, appears to have originated on the hub computer.

Configuring the Hub

With Central Mail Hub topography, the electronic mail hub is the computer that receives e-mail from any computer outside of the workgroup on behalf of its own users and those of the client computers that it serves.

  1. On the hub computer only, edit the file /etc/rc.config.d/mailservs:

    1. Set the environment variable SENDMAIL_SERVER to 1 to indicate that this computer is the hub computer:

      SENDMAIL_SERVER=1
    2. Set the environment variable SENDMAIL_SERVER_NAME to null to indicate that no other computer serves this one:

      SENDMAIL_SERVER_NAME=
    3. (Optional) Set the environment variable SENDMAIL_FREEZE to 1 to indicate that the sendmail configuration file is to be frozen. With older computers, and in certain other circumstances, a frozen configuration file can speed up sendmail’s performance by reducing the time it needs to parse its configuration file.

      SENDMAIL_FREEZE=1
  2. Reboot the hub computer to start up and properly configure the sendmail daemon.

Configuring the Clients

With Central Mail Hub topography, the client computers do not receive electronic mail directly. Users either log into the hub computer to process electronic mail, or they NFS-mount their incoming mailbox files, typically located in the directory /var/mount, and run a Mail User Agent on their client system to process their mail. For outgoing mail (see “Configuring a System to Send Electronic Mail”), the Mail User Agent will automatically schedule the sendmail program.

Gateway Mail Hub Topography (Receiving E-mail)

This type of electronic mail system is similar to the Central Mail Hub topography in that a single computer sends and receives e-mail on behalf of the all of the users in the workgroup to and from computers outside of the workgroup. The difference is that e-mail within the workgroup e-mail does not have to go through the hub computer because each client machine is running its own copy of the sendmail daemon allowing it to receive e-mail directly from other computers in the workgroup.

Configuring the Hub

The procedure for configuring the hub computer in a Gateway Mail Hub topography is:

  1. On the hub computer, edit the file /etc/rc.config.d/mailservs:

    1. Set the environment variable SENDMAIL_SERVER to 1 to indicate that this computer is the hub computer:

      SENDMAIL_SERVER=1
    2. Set the environment variable SENDMAIL_SERVER_NAME to null to indicate that no other computer serves this one:

      SENDMAIL_SERVER_NAME=
    3. (Optional) Set the environment variable SENDMAIL_FREEZE to 1 to indicate that the sendmail configuration file is to be frozen. With older computers, and in certain other circumstances, a frozen configuration file can speed up sendmail’s performance by reducing the time it needs to parse its configuration file.

      SENDMAIL_FREEZE=1
  2. Reboot the computer to start up and properly configure the sendmail daemon.

Configuring the Clients

Using Gateway Mail Hub topography each of the clients in a local workgroup can send e-mail to the others without having to go through the hub. For this to be successful each of the clients must be running its own sendmail daemon.

On each client computer:

  • Edit the /etc/rc.config.d/mailservs file:

    1. Set the SENDMAIL_SERVER environment variable to 1. Although you are configuring a client computer in the workgroup, setting this environment variable to 1 will start the sendmail daemon each time you boot your client computer so that it can receive e-mail from other systems in your workgroup.

      SENDMAIL_SERVER=1
    2. Set the SENDMAIL_SERVER_NAME environment variable to the name of the computer that will be the gateway to the outside world. For example, if the gateway computer was called gateway.corp.com:

      SENDMAIL_SERVER_NAME="gateway.corp.com"
    3. (Optional) The environment variable SENDMAIL_FREEZE does not apply to clients (which always freeze the sendmail configuration file), but it is probably good practice to set this variable to 1 to indicate to viewers of the /etc/rc.config.d/mailservs file that the sendmail configuration file is being frozen for this client computer:

      SENDMAIL_FREEZE=1

Fully Distributed (Standalone System) Topography

When using a Fully Distributed electronic mail topography, each computer is a standalone machine (with regard to electronic mail). Each machine is effectively its own workgroup and is configured just like the hub computer in a Central Mail Hub topography e-mail network.

Configuring Each System

The procedure for configuring each system in a Fully Distributed topography is:

  1. Edit the file /etc/rc.config.d/mailservs:

    1. Set the environment variable SENDMAIL_SERVER to 1 to indicate that this computer will run the sendmail daemon to receive mail:

      SENDMAIL_SERVER=1
    2. Set the environment variable SENDMAIL_SERVER_NAME to null to indicate that no other computer serves this one:

      SENDMAIL_SERVER_NAME=
    3. (Optional) Set the environment variable SENDMAIL_FREEZE to 1 to indicate that the sendmail configuration file is to be frozen. With older computers, and in certain other circumstances, a frozen configuration file can speed up sendmail’s performance by reducing the time it needs to parse its configuration file.

      SENDMAIL_FREEZE=1
  2. Reboot the computer to start up and properly configure the sendmail daemon.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2008 Hewlett-Packard Development Company, L.P.