Tutorial:Hardware
information, see the README in the
with UUCP addresses at all .
local and prog mailers. You will almost
cf/ subdirectory.
There's another feature, nullclient.
always need these; the only exception
This could be used to do what we will
is if you relay all your mail to another
VERSIONID('@(#)yourcompany.mc
do later on by hand, ie, generate a
site. This mailer is included automat 
8.5 (Berks) 10/8/97')
stripped down configuration file that
ically.
OSTYPE(mklinux) FEATURE(nouucp)
does nothing but forward all mail to a
SMTP is the Simple Mail Transport
MAILER(local) MAILER(smtp)
central hub via a local SMTP based
Protocol mailer. This does not hide
network. The argument is the name of
hosts behind a gateway or another
The first line is for housekeeping,
that hub.
other such hack; it assumes a world
and puts the version line into the out 
where everyone is running the name
put file, so you can keep track of changes.
MAILER
server. This file actually defines four
The MAILER macros use macro
mailers:  smtp  for regular (old style)
OSTYPE
files to specify rules to handle one or
SMTP to other servers,  esmtp  for ex 
The first macro defines our operat 
more mailers. Here, we invoke defini 
tended SMTP to other servers,  smtp8"
ing system. You must define an oper 
tions for a local mailer and an SMTP
to do SMTP to other servers without
ating system environment, or the
mailer. There are fewer mailers sup 
converting 8 bit data to MIME (essen 
configuration file build will fail. For us,
ported in this version than the pre 
tially, this is your statement that you
the OS is of course Linux; we use the
vious version, owing mostly to a
know the other end is 8 bit clean even
file in ostypes called mklinux.mc. This
simpler world. As a general rule, put
if it doesn't say so), and  relay  for
contains details such as default file lo 
the MAILER definitions last in your
transmission to our RELAY_HOST,
cations and other OS specific material.
.mc file, and always put MAILER 
LUSER_RELAY or MAILER_HUB.
It should not need to be changed.
(smtp) before MAILER(uucp)   several
features and definitions will modify
sendmail.cf
FEATURE
the definition of mailers, and the SMTP
The final sendmail configuration
The only feature we use is nouucp,
mailer modifies the UUCP mailer.
file is produced by invoking M4 with
which says  don't do anything special
The  local  parameter specifies the
the .mc file given above as its argu 
### Defined Macros (1)
### Header Declarations (4)
# The name of the mail hub
HFrom: $q
DRwotan.dunne.com
HReceived: by $j id $i; $b
# The hub as it is known to the outside world
H?x?Full Name: $?x$x$.
DHtiny1.demon.co.uk
H?D?Date: $a
# The local official domain name
H?M?Message Id: <$t.$i@$j>
Dj$w
# Our domain name
### Priorities (5)
DDdunne.com
Pspecial delivery=100
# Identity of the error message sender
Pfirst class=0
DnMailer Daemon
Plist= 30
# Look of the Unix From line
Pbulk= 60
DlFrom $g  $d
Pjunk= 100
# The characters that separate address components
Do.:%@!^=/[]
### Mailer Delivery Agent Definitions (6)
# Default form for the sender's address
# Mailer to forward all mail to the hub machine
Dq<$g>
Mhub, P=[IPC], S=10, R=0, F=xmDFMuCX, A=IPC $h
# Sendmail requires these, but we won't use them
### Defined Classes (2)
Mlocal,
P=/bin/mail,
S=0,
R=0,
F=lsDFMShP, A=deliver $u
# All possible names for local machine
Mprog,
P=/bin/sh,
S=0,
R=0,
F=lsDFMeu,
A=sh  c $u
Cw localhost donner
### The Rules Sets (7)
### Options (3)
S0 select delivery agent
# default delivery mode (in background)
R@$+
$#error
$: Missing user name
Odbackground
R$+
$#hub
$@$R $:$1
forward to hub
# temporary file permissions  0600 for secure mail
OF0600
S3 preprocessing for all rule sets
# default UID & GID
R$*<>$*
$n
handle <> error addresses
Ou1
R$*<$*<$*>$*>$*
$2<$3>$4
de nest brackets
Og1
R$*<$*>$*
$2
basic RFC822 parsing
# level at which to syslog errors
OL9
S10 rewrite the sender for the hub
# Wait for SMTP replies.
R$ 
$@$1@$H
user  > user@hub
Or1h
R$ @$w
$@$1@$H
user@local  > user@hub
# default messages to old style
R$ @$=w
$@$1@$H
user@othernames  > user@hub
OoTrue
R$ @$=w.$D
$@$1@$H
user@domain  > user@hub
# Replace unquoted spaces with a dot
OB.
S1 dummy ruleset 1 (unused)
Figure 1   A sample sendmail.cf file.
File: T1402.2
Issue 89 (November 1997) page 16
PC Network Advisor
<  Next page  >
New! The best sites for quality inkjet printer cartridges and the best sites for cheap inkjet cartridges
Windows Help Desk Home