HP-UX Mailing Services Administrator's Guide (B2355-91064)
HP recommends that you leave a copy of the configuration file in the /usr/newconfig
directory unmodified, in case you need to reinstall the default configuration settings.
To modify the configuration settings in the /etc/mail/sendmail.cf file, perform
the following steps:
1. The gen_cf UNIX shell script is installed in the
/usr/newconfig/etc/mail/cf/cf directory. You cannot copy this script to
a different directory and execute it, because it uses the macros defined in the
/usr/newconfig/etc/mail/cf directory to generate the sendmail.cf file.
This script provides many options that enable a specific ruleset. The *.m4 files
defined in the /usr/newconfig/etc/mail/cf directory are the input files for
this script. You can specify the output file, and later incorporate site-specific changes
(if any) in the output file.
Run the script gen_cf from the HP-UX prompt. A list of options that enable a
specific ruleset is displayed.
2. Choose the appropriate option. See “Sendmail Configuration Options” (page 44)
for a description of options.
An updated configuration file,sendmail.cf.gen, is generated in the directory
/usr/newconfig/etc/mail/cf/cf.
3. Copy or move the sendmail.cf.gen file to /etc/mail directory as
sendmail.cf. After copying the sendmail.cf.gen file to the /etc/mail
directory, you can make certain site-specific modifications to the sendmail.cf file.
If you do not wish to generate the sendmail.cf file using the gen_cf script, you can
directly make modifications to the /etc/mail/sendmail.cf file.
Restarting Sendmail
Issue the following commands, on a standalone system or on the mail server, to restart
Sendmail:
• /sbin/init.d/sendmail stop
/sbin/init.d/sendmail start
You must restart Sendmail if changes are made to any of the following:
• The Sendmail configuration file, /etc/mail/sendmail.cf.
• The UUCP configuration, as reflected in the output of the uuname command.
Sendmail Configuration Options
This section describes Sendmail configuration options.
44 Configuring and Administering Sendmail