|
|
Installing and Administering Internet Services: HP 9000 Networking > Chapter 4 Installing and Administering sendmailInstalling sendmail |
|
When you install sendmail, the installation script creates and modifies files on the system that are needed for sendmail operation. The sendmail configuration file supplied with HP-UX 11.0 will work without modifications for most installations. Therefore, the only steps you must do are: set up sendmail servers to run with NFS, configure and start sendmail clients, and verify that sendmail is running properly. This section contains information about the following tasks:
When sendmail is installed, it is automatically configured to send and receive mail for users on the local system only. The standalone system processes all outbound mail and establishes connections to the message destination host or to Mail Exchanger (MX) hosts (see “MX Records” for more information). The sendmail daemon is then started when you reboot the system, so you do not need to make any changes to any system files. The sendmail installation script makes the following configuration changes:
This section describes how to configure a system to allow users on other (client) systems to use sendmail. The mail server receives mail for local users and for the users on client systems. Users on client systems then NFS mount the mail directory from the server and read mail over an NFS link. For more information on how sendmail clients and servers work, see “Default Client-Server Operation”. The sendmail installation script performs the configuration changes that are described in “Installing sendmail on a Standalone System”. To set the system up as an NFS server and allow the sendmail clients to read and write to the /var/mail directory, do the following:
For more information on NFS, see Installing and Administering NFS Services. sendmail clients do not receive mail on their local system; instead, users on the client systems obtain their mail on the mail server. User mail directories reside on the server, and users read their mail over an NFS link. By default, a sendmail client forwards to the server any local mail (a user address destined for the client system) and sends non-local mail directly to the destination system or MX host. Outgoing mail appears to originate from the server, so replies are sent to the server. For more information on how sendmail clients and servers work, see “Default Client-Server Operation”. sendmail clients can be diskless systems. To configure a sendmail client system to access a sendmail server:
The sendmail startup script assumes that this system will use the host specified by the SENDMAIL_SERVER_NAME variable as the mail hub. The script also assumes that mail sent from this system should appear to be from the host specified by the SENDMAIL_SERVER_NAME variable (this feature may previously have been known as "site hiding"). The script therefore modifies the macros DM (for "masquerade") and DH (for "mail hub") in the system's /etc/mail/sendmail.cf file to use the host specified by the SENDMAIL_SERVER_NAME variable. Note that if the DM and DH macros have previously been defined, the startup script does not modify them. As mentioned earlier, the client system now forwards local mail to the mail server and forwards other mail directly to remote systems. To configure the client system to relay all mail to the mail server for delivery, see “Modifying the Default sendmail Configuration File”. The NFS startup script NFS-mounts the /var/mail directory from the mail server to your system. For more information on NFS, see Installing and Administering NFS Services. You can verify that sendmail has been installed properly and is working properly by doing the things described in the following sections:
To check your local mailer or user agent, mail a message to a local user (for example, joe) on your system:
This should result in a message similar to the following being sent to user joe:
An entry in your /var/adm/syslog/mail.log file should have been logged for the local message transaction. See “Configuring and Reading the sendmail Log” for more information. For this test, mail a message to a remote user with the UUCP transport by using a host !user address, where host is a system to which your local host has a direct UUCP connection. (The uuname command lists the UUCP names of known systems. Type man 1 uuname at the HP-UX prompt for more information.) To verify both inbound and outbound UUCP connections, mail the message in a loop, using the syntax remote_host !my_host !user. For example, if you try
and node2 is your local host, you should receive a message similar to this:
An entry in your /var/adm/syslog/mail.log file should have been logged for the UUCP mail transaction. See “Configuring and Reading the sendmail Log” for more information.
For this test, mail a message to a remote user with the SMTP transport using a user @host address, where host is a system that provides an SMTP server (for example, the sendmail daemon). To verify both inbound and outbound SMTP connections, mail the message in a loop, using the syntax user %my_host @remote_host. For example, if you try
you should receive a message similar to the following:
An entry in your /var/adm/syslog/mail.log file should have been logged for the SMTP mail transaction. See “Configuring and Reading the sendmail Log” for more information.
|
|