Installing and Administering Internet Services

148 Chapter 4
Installing and Administering sendmail
Modifying the Default sendmail Configuration File
Defines the delivery agents (mailers) to be used for delivering the
mail.
Specifies how sendmail should 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.
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.
Forwarding Non-Domain Mail to a Gateway
Mail that is being sent to a domain other than the sender’s domain can
be forwarded to a mail gateway. To have non-domain mail forwarded to a
mail gateway, edit the DS line in the /etc/mail/sendmail.cf file to
specify the host name of the mail gateway:
DSmailgw.cup.hp.com