Serviceguard Toolkits for Contrib User Guide Version A.12.00.00
Table 9 Sendmail toolkit files
Available in directoryDescriptionFile name
$SGROOT/sendmailtoolkitThis is the toolkit main script that
contains internal functions that start or
stop an Sendmail server instance.
hasendmail.sh
This monitors the health of the running
Sendmail server application.
hasendmail.mon
This is interface between the package
control script and the Sendmail toolkit
main shell script hasendmail.sh.
toolkit.sh
$SGCONF/modules/tkit/sendmailThese are attribute definition files,
used to generate package ASCII
sendmail.1
sendmail.2
templates in modular style of
packaging.
$SGCONF/scripts/tkit/sendmailThis is the module script. This script is
called by the master control script and
tkit_module.sh
acts as an interface between the
master control script and the toolkit
interface script (toolkit.sh).
Setting up the Sendmail server in SG/LX environment
To set up the Sendmail server:
1. Build a run-time configuration file, which the Sendmail reads when it starts up. This file describes
the mailer information, the format of message header and the settings of other options and
their rules.
# m4 /etc/mail/sendmail.mc > /etc/sendmail.cf
2. Generate a new configuration file, /etc/sendmail.cf, for any changes made to /etc/
mail/sendmail.mc file.
NOTE:
• The configuration file is read once when the Sendmail application starts up. Any
subsequent changes to this file after the Sendmail application is up does not take effect
until the Sendmail is restarted.
• On SLES systems the default sendmail.mc file does not exist. For more information
about customizing and building /etc/sendmail.cf, see http://www.sendmail.org/.
3. Disable the Sendmail application auto-startup on all the cluster nodes:
For example:
• On Red Hat:
# mv /etc/rc.d/rc5.d/S80sendmail /etc/rc.d/rc5.d/x80sendmail
• On SLES:
# mv /etc/rc.d/rc5.d/S12sendmail /etc/rc.d/rc5.d/x12sendmail
Assuming that the nodes are running at run level 5; always check the runlevel from the
file /etc/inittab.
4. Configure Sendmail in shared volume groups on all the nodes in the cluster:
Create volume groups and logical volumes on the shared disks and construct a new file system
for each logical volume for the Sendmail mailbox and the mail queue.
These shared resources must reside on the file system on the shared disks. These shared
resources include all user mailboxes and their mail queues, and any additional mail information
28 Sendmail Toolkit