Ludzie pragną czasami się rozstawać, żeby móc tęsknić, czekać i cieszyć się z powrotem.
It is generally wise to leave them in LIBDIR.
The Master Sendmail.mc File
include(Sendmail.mc)dnl
# REQUIRED ENTRY !!!
The authors of sendmail+IDA provide the Sendmail.mc le which contains the true
\guts" of what becomes the sendmail.cf le. Periodically, new versions are released to x bugs or add functionality without requiring a full release and recompilation of sendmail
from sources.
It is important not to edit this le.
So Which Entries are Really Required?
When not using any of the optional dbm tables, sendmail+IDA delivers mail via the DE-
FAULT MAILER (and possibly RELAY HOST and RELAY MAILER) dened in the send-
mail.m4 le used to generate sendmail.cf. It is easily possible to override this behavior
through entries in the domaintable or uucpxtable.
A generic site that is on Internet and speaks Domain Name Service, or one that is UUCP-
only and forwards all mail via UUCP through a smart RELAY HOST, probably does not
need any specic table entries at all.
Virtually all systems should set the DEFAULT HOST and PSEUDONYMS macros,
which dene the canonical site name and aliases it is known by, and DEFAULT MAILER.
If all you have is a relay host and relay mailer, you don't need to set these defaults since it works automagically.
UUCP hosts will probably also need to set UUCPNAME to their ocial UUCP name.
They will also probably set RELAY MAILER, and RELAY HOST which enable smart-host
routing through a mail relay. The mail transport to be used is dened in RELAY MAILER
and should usually be UUCP-A for UUCP sites.
If your site is SMTP-only and talks `Domain Name Service', you would change the DE-
FAULT MAILER to TCP-A and probably delete the RELAY MAILER and RELAY HOST
lines.
15.4. A Tour of Sendmail+IDA Tables
253
15.4 A Tour of Sendmail+IDA Tables
Sendmail+IDA provides a number of tables that allow you to override the default behavior of sendmail (specied in the sendmail.m4 le) and dene special behavior for unique situations, remote systems, and networks. These tables are post-processed with dbm using the Makele
provided with the distribution.
Most sites will need few, if any, of these tables. If your site does not require these tables, the easiest thing is probably to make them zero length les (with the touch command) and
use the default Makele in LIBDIR rather than editing the Makele itself.
15.4.1 mailertable
The mailertable denes special treatment for specic hosts or domains based on the remote
host or network name. It is frequently used on Internet sites to select an intermediate
mail relay host or gateway to reach a remote network through, and to specify a particular
protocol (UUCP or SMTP) to be used. UUCP sites will generally not need to use this le.
Order is important. Sendmail reads the le top-down and processes the message accord-
ing to the rst rule it matches. So it is generally wise to place the most explicit rules at the top of the le and the more generic rules below.
Suppose you want to forward all mail for the Computer Science department at Groucho
Marx University via UUCP to a relay host ada. To do so, you would have a mailertable
entry that looked like the following:
# (in mailertable)
#
# forward all mail for the domain .cs.groucho.edu via UUCP to ada
UUCP-A,ada
.cs.groucho.edu
Suppose you want all mail to the larger groucho.edu domain to go to a dierent relay-
host bighub for address resolution and delivery. The expanded mailertable entries would
look quite similar.
# (in mailertable)
#
# forward all mail for the domain cs.groucho.edu via UUCP to ada
UUCP-A,ada
.cs.groucho.edu
#
# forward all mail for the domain groucho.edu via UUCP to bighub
UUCP-A,bighub
.groucho.edu
15.4. A Tour of Sendmail+IDA Tables
254
As mentioned above, order is important. Reversing the order of the two rules shown
above will result in all mail to .cs.groucho.edu going through the more generic bighub
path instead of the explicit ada path that is really desired.
# (in mailertable)
#
# forward all mail for the domain .groucho.edu via UUCP to bighub
UUCP-A,bighub
.groucho.edu
#
# (it is impossible to reach the next line because
#
the rule above will be matched first)
UUCP-A,ada
.cs.groucho.edu
#
In the mailertable examples above, the UUCP-A mailer makes sendmail use UUCP
delivery with domainized headers.