HP Serviceguard Linux Contributed Toolkit Suite A.04.02.01 User Guide (696979-001, June 2012)

Table 10 Files for creating modular packages
Available in directoryDescriptionFile name
Red Hat: ${SGCONF}/modules/
tkit/sendmail
This is an attribute definition file, used
to generate a package ASCII template
in modular style of packaging.
sendmail.1
Red Hat: ${SGCONF}/scripts/
tkit/sendmail
This is the module script. This script is
called by the master control script and
acts as an interface between the
tkit_module.sh
tkit_module.sh master control
script and the toolkit interface script
(toolkit.sh). It is also responsible
for calling the toolkit configuration file
generator script.
NOTE: This file is used only for
creating modular packages.
Red Hat: ${SGCONF}/scripts/
tkit/sendmail
This is the toolkit configuration file
generator script. This script is called
by the module script when the
tkit_gen.sh
package configuration is applied
using cmapplyconf to generate the
user configuration file in the package
directory, TKIT_DIR.
NOTE: This file is used only for
creating modular packages.
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.
3. Disable the Sendmail application auto-start up on all the cluster nodes:
For example:
# mv /etc/rc.d/rc5.d/S80sendmail /etc/rc.d/rc5.d/x80sendmail
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
that require to be shared. Optionally, files under /etc/mail directory and /etc/
sendmail.cf file can reside on their own nodes as long as their contents are identical.
Make link connections for /var/spool/mail and /var/spool/mqueue to the newly
created directories on the shared disks on each node.
Volume group /dev/vgSM
E.g. pvcreate /dev/sdb1, then vgvreate vgSM
46 Sendmail Toolkit