HPlogo Installing and Administering Internet Services: HP 9000 Networking > Chapter 4 Installing and Administering sendmail

Migrating the sendmail Configuration File

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

Beginning with the earlier HP-UX 10.20 release, the format of the sendmail configuration file /etc/mail/sendmail.cf changed from the version 1 format to the version 6 format. You cannot use a pre-10.20 version (that is, version 1) of the sendmail configuration file with the sendmail included with HP-UX 10.20 and later. This section discusses the methods of migrating a version 1 sendmail configuration file to the version 6 file format. Note that you need to migrate the configuration file only if you are updating your sendmail software from a pre-10.20 version to the version included with HP-UX 10.20 and later.

The /etc/mail/sendmail.cf file that is installed with the sendmail for HP-UX 10.20 and later contains a default configuration that can be used with HP-UX 10.20 and later. The script for installing Internet Services on HP-UX 10.20 and later moves an existing /etc/mail/sendmail.cf file to /etc/mail/#sendmail.cf, so you will still have the original file for your reference.

NOTE: If there is an existing version 6 /etc/mail/sendmail.cf file, then that file is not overwritten by the script. If the existing/etc/mail/sendmail.cf file is not version 6, then the file is copied to /etc/mail/#sendmail.cf and a version 6 /etc/mail/sendmail.cf file is written. In either case, a sample version 6 configuration file can be found in /usr/newconfig/etc/mail/sendmail.cf.

There are two methods of migrating your configuration file:

  • Make any modifications that you need to the /etc/mail/sendmail.cf file that is installed with HP-UX 10.20 and later. This method is recommended where you have minimal site-specific changes to the sendmail.cf file.

  • Use the convert_awk utility to convert the old (pre-version 6) configuration file into a format required by sendmail for HP-UX 10.20 and later. Note that while the resultant file is usable by the 10.20 and later sendmail, it does not allow you to use the format and options available with the 10.20 and later sendmail.cf file. For this reason, you should use convert_awk only if your old (pre-version 6) sendmail configuration file contains many site-specific rulesets that are not easily redefined in the version 6 sendmail.cf format.

© 2000 Hewlett-Packard Development Company, L.P.