Configuring sendmail (optional)
The UNIX programmer needs
to configure sendmail if your installation plans to use any of the
following functions:
- Sending email notifications to users whose certificate request is rejected, ready for retrieval, or about to expire
- Sending email notifications to administrators who have requests pending
- Automatic certificate renewal
- Requesting certificates for which the key pair (public key and private key) is generated by PKI Services
Note: Before you begin, you need the following document:
Follow the instructions in z/OS Communications Server: IP Configuration Guide for
configuring z/OS® UNIX sendmail. In general, you need
to perform the following steps:
- Create an alias file to define the postmaster and MAILER-DAEMON user IDs and the nobody alias (/dev/null).
- Create the sendmail configuration file using the m4 macro preprocessor.
- Load this configuration file into sendmail.
Notes:
- Because PKI Services always provides the return email address, you do not need to configure sendmail to provide it. This simplifies your setup.
- If you configure sendmail to run on the local system as a server, you need to change the PATH statement in the pkiserv.envars file to PATH=/bin instead of PATH=/usr/sbin.
Perform the following steps to test your sendmail configuration:
- From the UNIX command line,
create a mail file with some information in it. The following example
is called mail.txt. (You need this name in the next
step.)
To:target-email@address.com From:source-email@address.com Subject:This is a test
- If sendmail is configured to run as a server on the local system,
enter the command:
Otherwise, enter the command:/bin/sendmail -t <mail.txt
/usr/sbin/sendmail -t <mail.txt