Книга: Linux Network Administrator Guide, Second Edition
DOMAIN
DOMAIN
The DOMAIN macro is useful when you wish to configure a large number of machines on the same network in a standard way. It you're configuring a small number of hosts, it probably isn't worth bothering with. You typically configure items, such as the name of mail relay hosts or hubs that all hosts on your network will use.
The standard installation contains a directory of m4 macro templates used to drive the configuration process. This directory is usually named /usr/share/sendmail.cf or something similar. Here you will find a subdirectory called domain that contains domain-specific configuration templates. To make use of the DOMAIN macro, you must create your own macro file containing the standard definitions you require for your site, and write it into the domain subdirectory. You'd normally include only the macro definitions that were unique to your domain here, such as smart host definitions or relay hosts, but you are not limited to these.
The sendmail source distribution comes with a number of sample domain macro files that you can use to model your own.
If you saved your domain macro file as /usr/share/sendmail.cf/domain/vbrew.m4, you'd include definitions in your sendmail.mc using:
DOMAIN(`vbrew')
- Your Own Domain Name and Third-Party DNS
- Providing DNS for a Real Domain with BIND
- Providing DNS for a Real Domain
- Registering the Domain
- Accepting mail for other domains
- Creating child domains within zones
- Creating child domains in separate zones
- Deleting a domain or subnet
- 13.3.1. Установка текстового домена: textdomain()
- 5.5.3 Contention scope and allocation domain
- Элемент DomainUpDown
- Designing a Domain-Specific Language