HP-UX Mailing Solutions White Paper
This section addresses the following topics:
Prerequisites
Following are the prerequisites for configuring Sendmail on an HP-UX operating system:
• The Sendmail 8.13.3 software
NOTE: Sendmail 8.13.3 is available in the core HP-UX 11i v3 operating system.
• The complete hostname of the system where the Sendmail server is installed. For example,
system_name.domain_name.com.
• A well connected system. To ensure that the system is well connected, complete the following
checks:
— Ensure that the system is connected to the network and the complete host name is
registered in the domain name server (DNS).
— Ensure that the /etc/nsswitch.conf file contains the following entry:
hosts: dns files
aliases: files
• Ensure that the /etc/resolv.conf file contains the following entry:
nameserver <Your DNS server’s IP address>
domain <Your domain name>
Following is a sample entry in the /etc/resolv.conf file:
nameserver 15.10.40.3
domain india.hp.com
• Test the connectivity of the system with a different system using the ping command.
Setting Up the Sendmail Server on an HP-UX System
Follow this procedure to set up the Sendmail server on an HP-UX system:
1. Ensure that Sendmail is available in the system:
# which sendmail
/usr/sbin/sendmail
2. Ensure that the Sendmail instance is running in the system:
# ps -ef | grep sendmail
root 1360 1 0 10:37:47 ? 0:03 sendmail: accepting connections
Follow this procedure if the Sendmail instance is not running:
1. Ensure that the /etc/rc.config.d/mailservs file contains the following entry:
export SENDMAIL_SERVER=1
export SENDMAIL_SERVER_NAME=
export SENDMAIL_RECVONLY=0
export SENDMAIL_SENDONLY=0
If the /etc/rc.config.d/mailservs file does not exist, create it with the entries
mentioned previously.
2. Ensure that the Sendmail configuration file, /etc/mail/sendmail.cf, exists.
If this file does not exist, copy the /usr/newconfig/etc/mail/sendmail.cf to
the /etc/mail directory:
# cp /usr/newconfig/etc/mail/sendmail.cf /etc/mail/sendmail.cf
3. Start the Sendmail instance:
# /sbin/init.d/sendmail start
8