Red Hat ENTERPRISE LINUX 3 Reference Manual page 181

Hide thumbs Also See for ENTERPRISE LINUX 3:
Table of Contents

Advertisement

Chapter 11. Email
Sendmail's lengthy and detailed configuration file is
the
sendmail.cf
/etc/mail/sendmail.mc
included
macro processor to create a new
m4
configuring Sendmail can be found in Section 11.3.1.3 Common Sendmail Configuration Changes.
Various Sendmail configuration files are installed in the
— Specifies which systems can use Sendmail for outbound email.
access
— Specifies domain name mapping.
domaintable
local-host-names
— Specifies instructions that override routing for particular domains.
mailertable
virtusertable
mains to be hosted on one machine.
Several of the configuration files in
and
virtusertable
any configuration changes. To include any changes made to these configurations in their database files,
run the command:
makemap hash /etc/mail/ name
Where
is replaced with the name of the configuration file to convert.
name
For example, to have all emails addressed to the
<
bob@other-example.com
@example.com
To finalize the change, the
as root:
makemap hash /etc/mail/virtusertable
This creates a new
virtusertable.db
11.3.1.3. Common Sendmail Configuration Changes
When altering the Sendmail configuration file, it is best generate an entirely new
/etc/mail/sendmail.cf
Caution
Before changing the
To add the desired functionality to Sendmail, edit the
user. When finished, use the
following command:
m4 /etc/mail/sendmail.mc
By default, the
macro processor is installed with Sendmail but is part of the
m4
file directly. Instead, to make configuration changes to Sendmail, edit the
file, back up the original
— Specifies aliases for the host.
— Specifies a domain-specific form of aliasing, allowing multiple virtual do-
/etc/mail/
, must actually store their information in database files before Sendmail can use
/etc/mail/ name
>, add the following line to the
bob@other-example.com
virtusertable.db
file instead of editing an existing one.
file, it is a good idea to create a backup copy.
sendmail.cf
macro processor to generate a new
m4
/etc/mail/sendmail.cf
/etc/mail/sendmail.cf
/etc/mail/sendmail.cf
/etc/mail/sendmail.cf
/etc/mail/
, such as
access
example.com
virtusertable
file must be updated using the following command
/etc/mail/virtusertable
file containing the new configuration.
/etc/mail/sendmail.mc
. Avoid editing
, and then use the
. More information on
directory including:
,
,
domaintable
mailertable
domain delivered to
file:
file as the root
by executing the
sendmail.cf
package.
m4
163

Advertisement

Table of Contents
loading

Table of Contents