Chapter 24. Email
382
•
access
— Specifies which systems can use Sendmail for outbound email.
•
domaintable
— Specifies domain name mapping.
•
local-host-names
— Specifies aliases for the host.
•
mailertable
— Specifies instructions that override routing for particular domains.
•
virtusertable
— Specifies a domain-specific form of aliasing, allowing multiple virtual domains
to be hosted on one machine.
Several of the configuration files in
/etc/mail/
, such as
access
,
domaintable
,
mailertable
and
virtusertable
, must actually store their information in database files before Sendmail can use
any configuration changes. To include any changes made to these configurations in their database
files, run the following command:
makemap hash /etc/mail/
<name>
< /etc/mail/
<name>
where
<name>
is replaced with the name of the configuration file to convert.
For example, to have all emails addressed to the
example.com
domain delivered to
, add the following line to the
virtusertable
file:
@example.com [email protected]
To finalize the change, the
virtusertable.db
file must be updated using the following command
as root:
makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable
This creates an updated
virtusertable.db
file containing the new configuration.
24.3.1.3. Common Sendmail Configuration Changes
When altering the Sendmail configuration file, it is best not to edit an existing file, but to generate an
entirely new
/etc/mail/sendmail.cf
file.
Caution
Before changing the
sendmail.cf
file, it is a good idea to create a backup copy.
To add the desired functionality to Sendmail, edit the
/etc/mail/sendmail.mc
file as the root
user. When finished, use the
m4
macro processor to generate a new
sendmail.cf
by executing the
following command:
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
By default, the
m4
macro processor is installed with Sendmail but is part of the
m4
package.
After creating a new
/etc/mail/sendmail.cf
file, restart Sendmail for the changes to take effect.
The easiest way to do this is to type the following command:
Содержание ENTERPRISE LINUX 5 - VIRTUAL SERVER ADMINISTRATION
Страница 22: ...xxii ...
Страница 28: ......
Страница 36: ...10 ...
Страница 40: ...14 ...
Страница 96: ...70 ...
Страница 116: ...90 ...
Страница 144: ...118 ...
Страница 146: ......
Страница 158: ...132 ...
Страница 165: ...Installing and Removing Packages 139 Figure 11 7 Installing and removing packages simultaneously ...
Страница 166: ...140 ...
Страница 172: ...146 ...
Страница 178: ......
Страница 228: ...202 ...
Страница 264: ...238 ...
Страница 318: ...292 ...
Страница 330: ...304 ...
Страница 388: ...362 ...
Страница 428: ...402 ...
Страница 452: ......
Страница 458: ...432 ...
Страница 476: ...450 ...
Страница 478: ...452 ...
Страница 494: ...468 ...
Страница 498: ...472 ...
Страница 530: ...504 ...
Страница 536: ...510 ...
Страница 544: ...Chapter 36 Log Files 518 Figure 36 7 Log file contents after five seconds ...
Страница 546: ......
Страница 550: ...524 ...
Страница 576: ......
Страница 584: ...558 ...
Страница 608: ......
Страница 776: ...750 ...
Страница 796: ...770 ...
Страница 800: ...774 ...
Страница 804: ......
Страница 806: ...780 ...
Страница 808: ...782 ...
Страница 816: ...790 ...
Страница 820: ...794 ...
Страница 822: ...796 ...
Страница 830: ...804 ...
Страница 836: ...810 ...
Страница 844: ...818 ...
Страница 848: ...822 ...