HP-UX Mailing Services Administrator's Guide
Configuring and Administering Sendmail
Modifying the Default Sendmail Configuration File
Chapter 2 49
• Specifies how Sendmail must rewrite addresses in the header, if
necessary, so that the message address can be understood by the
receiving host. The address rewriting process is controlled by sets of
address rewriting rules called rulesets.
The default configuration file, sendmail.cf, is located in the
/usr/newconfig/etc/mail/sendmail.cf directory, and is installed in
the /etc/mail/sendmail.cf directory.
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” on page 50 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.