| United States-English |
|
|
|
![]() |
HP-UX Mailing Services Administrator's Guide: HP-UX 11i v1 and HP-UX 11i v2 > Chapter 2 Configuring
and Administering SendmailConfiguring Sendmail |
|
Sendmail is packaged with the core HP-UX 11i v2 operating system. When you install the operating system, Sendmail is automatically installed on your system. The necessary files required for Sendmail operation are created or modified on your system. The Sendmail configuration file supplied with the operating system, sendmail.cf, will work without modifications for most installations. Therefore, you only need to perform a few tasks to configure Sendmail:
This section discusses the following topics:
When Sendmail is installed, it is automatically configured to send and receive mail messages for users on the local system only. The standalone system processes all outbound mail and establishes connections to the message destination host or to the MX hosts. Because the Sendmail daemon is invoked automatically when a system is rebooted, no system files need to be modified. The 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 mount the mail directory from the server and read or access 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 “Configuring Sendmail on a Standalone System”. To set up the system 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, at the URL http://www.docs.hp.com/hpux/onlinedocs/B1031-90048/B1031-90048.html. Sendmail clients do not receive mail on their local system, but receive 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 nonlocal mail directly to the destination system or MX host. An outgoing mail message appears to originate from the server, so replies are sent back 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, do the following:
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 appears 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. If the DM and DH macros have been defined previously, the startup script does not modify them. 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 mounts the /var/mail directory from the mail server to your system. This section provides information on how to verify your Sendmail installation. It discusses the following topics:
To check your local mailer or user agent, send a mail message to a local user (for example, joe) on your system:
This must result in a message similar to the following being sent to user joe:
An entry in your /var/adm/syslog/mail.log file must have been logged for the local message transaction. See “Configuring and Reading the Sendmail Log” for more information. If you are using UUCP addressing, you can verify your Sendmail installation by sending a mail message to a remote user with 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 execute the following command:
An entry in your /var/adm/syslog/mail.log file must have been logged for the UUCP mail transaction. See “Configuring and Reading the Sendmail Log” for more information.
If you are using the SMTP Transport, you can verify your Sendmail installation by sending a message to a remote user 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.
An entry in your /var/adm/syslog/mail.log file must have been logged for the SMTP mail transaction. See “Configuring and Reading the Sendmail Log” for more information.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||