Highly Available HP-UX Internet Services (May 2008)
SG_SENDMAIL_SENDONLY
Starts or stops the Sendmail server in a send-only
mode.
NOTE: The variables are prefixed with SG to indicate that these variables specific to
HP ServiceGuard.
For a sample startup script, see “HP ServiceGuard Startup/Stop Script for Sendmail”
(page 23).
Integrating HP ServiceGuard with Sendmail
Consider the following before setting up Sendmail in an HP ServiceGuard environment:
• Ensure that the latest version Sendmail (8.13.3), preferably at the same patch level,
is installed on all the nodes in the HP ServiceGuard cluster.
• Do not start the Sendmail daemons explicitly from the startup (rc) script. You
must start Sendmail from the HP ServiceGuard environment. Therefore, ensure
that the following entries exist in the /etc/rc.config.d/mailservs file:
export SENDMAIL_SERVER=0
export SENDMAIL_SERVER_NAME=
export SENDMAIL_RECVONLY=0
export SENDMAIL_SENDONLY=0
export SG_SENDMAIL_SERVER=1
export SG_SENDMAIL_RECVONLY=0
export SG_SENDMAIL_SENDONLY=0
NOTE: The HP ServiceGuard startup/stop script uses the variables prefixed by
SG_.
• Ensure that proper permissions and ownerships are retained in the files/directories
on the shared volume by creating appropriate permissions for the files/directories
on the shared volume (by comparing against the base files/directories, that is,
/etc/mail.PREV and /var/spool/mqueue.PREV).
Ensure that you set appropriate permissions to the parent directories, /etc and
/etc/mail, and they are not world writable. Otherwise, the Sendmail startup
script can fail with the following error message in the
/var/adm/syslog/mail.log file:
451 4.0.0 /etc/mail/sendmail.cf: line 740: fileclass: cannot open '/etc/mail/sendmail.cw':
World writable directory
• Ensure that the value of the DeadLetterDrop Sendmail configuration file option
is a file available in a shared volume, preferably the
/var/opt/sendmail/dead.letter file.
• Ensure that the value of the ControlSocketName Sendmail configuration file
option is a file available in a shared volume.
Follow this procedure to setup Sendmail in an HP ServiceGuard environment:
12