Installing and Administering Internet Services

122 Chapter 4
Installing and Administering sendmail
Installing sendmail
Creates /etc/mail/sendmail.cf and /etc/mail/aliases files
with default configurations. These files are created with root as the
owner, other as the group, and permissions set to 0444.
NOTE If an /etc/mail/sendmail.cf file already exists, the existing file is
saved to /etc/mail/#sendmail. If an /etc/mail/aliases file
already exists, then the sendmail installation script does not create it.
Creates the file /etc/mail/sendmail.cw that contains the
hostname and the fully-qualified hostname for the system. For
example, the system dog in the domain cup.hp.com has the
following entries in the file:
dog
dog.cup.hp.com
Finally, the installation script issues the following command to run
the sendmail startup script:
/sbin/init.d/sendmail start
The sendmail startup script generates the aliases database from the
/etc/mail/aliases source file. The generated database is located
in the file /etc/mail/aliases.db.
The sendmail startup script then starts the sendmail daemon by
issuing the following command:
/usr/sbin/sendmail -bd -q30m
The -q30m option tells sendmail to process the mail queue every 30
minutes.
For more information about sendmail command line options, type
man 1M sendmail at the HP-UX prompt.
Installing sendmail on a Mail Server
This section describes how to configure a system to allow users on other
(client) systems to use sendmail. The mail server receives mail for local
users and for the users on client systems. Users on client systems then
NFS mount the mail directory from the server and read mail over an
NFS link. For more information on how sendmail clients and servers
work, see “Default Client-Server Operation” on page 142.