| Date: Wed, 19 Feb 1997 16:06:03 -0500
From: [email protected] (Tammy Sandefur)
To: [email protected]
Subject: info you requested
#
# @DEC_COPYRIGHT@
#
# $PreviousLog: sendmail.cf.pd,v $
# Revision 1.1.8.2 1993/09/07 21:42:57 Robert_Wu
# Added latent support for X.25 (PSI) mailer
#
# Decoupled UMC mail from DECnet. This allows the user to add support
# for a UMC relay without dragging in DECnet.
#
# Fixed QAR 12195/12796. Without DECnet enabled, addresses with a "%" in
# them became mangled.
#
# Mailer flags for Mlocal were incorrect. They caused binmail to destroy
# the first line of the header when delivering mail. This caused the
# local "Received:" line to disappear.
#
# Modified default "Received:" header. As per RFC 1123 & 821, the sending
# host's name is DNS validated, and added to the header. This helps to
# leave an audit trail when someone is attempting to spoof the recipient.
# [1993/08/27 07:54:58 Robert_Wu]
#
# Revision 1.1.6.2 92/05/05 10:15:32 devbld_gsf
# First AG_BL6_4 version. Moved from Ag baselevel delivery tree.
#=20
# Revision 1.1.4.3 92/04/17 08:12:56 Todd_Kaehler
# Fix problems is separating DECnet phase IV from phase V addresses.
#=20
# Revision 1.1.4.2 92/04/15 10:15:41 Todd_Kaehler
# Modify for DECnet phase V mail
#=20
# Revision 1.1.3.9 1993/01/08 15:03:59 Todd_Kaehler
# Added -r $f to the A=3D part of the local mailer line.
# [93/01/06 09:21:05 Todd_Kaehler]
#=20
# Revision 1.1.3.8 92/12/22 14:11:20 Todd_Kaehler
# Remove a comment which was un-necessary
# [92/12/18 11:33:38 Todd_Kaehler]
#=20
# Revision 1.1.3.7 92/12/09 08:23:37 Todd_Kaehler
# fix pop and DECnet mail bugs - QAR 8596 and 8869
# [92/12/08 09:02:53 Todd_Kaehler]
#=20
# Revision 1.1.3.6 92/10/23 14:01:37 Todd_Kaehler
# Correct a bad merge on the bsubmit.
# [92/10/23 13:49:47 Todd_Kaehler]
#=20
# Revision 1.1.3.5 92/10/23 13:32:53 Todd_Kaehler
# Fixed DECnet formatting problems and parameterized the configuration
# using m4.
# [92/10/22 12:22:35 Todd_Kaehler]
#=20
# Revision 1.1.3.4 92/10/23 13:20:43 Todd_Kaehler
# Fixed DECnet formatting problems and parameterized the configuration
# using m4.
# [92/10/22 12:22:35 Todd_Kaehler]
#=20
# Revision 1.1.3.3 92/05/05 17:02:44 Al_Delorey
# From Silver: AG_BL6_4
# [92/05/05 17:02:14 Al_Delorey]
#=20
# Revision 1.1.3.2 92/02/13 09:37:40 Todd_Kaehler
# Initial submit for mailsetup.
#=20
# Revision 1.1.2.4 92/02/11 15:51:55 Todd_Kaehler
# Remove comments which refer to ULTRIX and unsupported stuff.
#=20
# Revision 1.1.2.3 92/02/11 14:02:45 Todd_Kaehler
# fixed leader in header
#=20
# Revision 1.1.2.2 92/02/11 13:58:21 Todd_Kaehler
# initial product description file for the mailsetup script
#=20
# $PreviousEndLog$
#=20
# @(#)$RCSfile: sendmail.cf.pd,v $ $Revision: 1.1.2.4 $ (DEC) $Date: 1994/09/16 15:07:55 $=
=20
#
# cruft to let old bindsetup work. these macros are not used.
#
DDLOCAL
DADOSLAN1
############################################################ @Ltag(Intro)
############################################################
#####
##### SENDMAIL CONFIGURATION FILE
#####
##### Paul Vixie, forked off on 9-December-90
##### Paul Vixie, major MAIL11/MR work on 17-July-1991
##### Paul Vixie, Todd Kaehler and Fred Avolio: parameterized, August 1992
#####
#####
############################################################
############################################################
## predefined
# $y decnet node name (if known) (if running a recent binary)
# $w fully-qualified hostname
# $j same as $w (except IDA, which is all-lower-case, strip-at-first-dot)
##
############################################################ @Ltag(LocalInfo)
### local info
############################################################
# parent domain
DPLOCAL
# my domain
DNLOCAL
# name exported on external internet mail
DWDOSLAN3
# my official hostname
Dj$w
#
# aliases at the $P level -- we think we are authoritative for these
#
CdLOCAL
#
# usernames which will be @host qualified on outbound localdom mail
#
CNroot postmaster news uucp mailer-daemon rdist nobody daemon pop
#
# trash top-level domains -- don't use $[...$] on names ending with these
#
CTUUCP USENET UMC DNET=20
=20
############################################################
#
# General configuration information
#
############################################################
# Version Number
DV1.1.2.4/23Nov96-1219PM
##########################
### Special macros ###
##########################
# my name
DnMAILER-DAEMON
# UNIX header format
DlFrom $g $d
# delimiter (operator) characters
Do.:%@!^=3D/[]
# format of a total name
Dq$?x$x $.<$g>
# SMTP login message
De$j Sendmail $v ($V) $b
###################
### Options ###
###################
# wait 5 minutes for newaliases to complete
Oa
# location of alias file
OA/var/adm/sendmail/aliases
# default delivery mode (deliver in background)
Odbackground
# temporary file mode
OF0600
# default UID
Ou1
# default GID
Og1
# location of help file
OH/usr/share/lib/sendmail.hf
# log level
OL9
# include sender if she's on an alias to which she's sending
Om
# queue directory
OQ/var/spool/mqueue
# read timeout -- violates protocols
Or1h
# status file
OS/var/adm/sendmail/sendmail.st
# queue up everything before starting transmission
Os
# use separate envelope/header rewriting rulesets (IDA)
O/
# default timeout interval
OT3d
# load average for forcing "Odq" behaviour
Ox20
# load average for refusing connections
OX12
###############################
### Message precedences ###
###############################
Pfirst-class=3D0
Pspecial-delivery=3D100
Pjunk=3D-100
#########################
### Trusted users ###
#########################
Troot daemon uucp news
#############################
### Format of headers ###
#############################
H?P?Return-Path: <$g>
#HReceived: by $j; id $i; $b
HReceived: $?sfrom $s $.by $j; ($v/$V)
id $i; $b
H?D?Resent-Date: $a
H?D?Date: $a
H?F?Resent-From: $q
H?F?From: $q
H?x?Full-Name: $x
HSubject:
H?M?Resent-Message-Id: <$t.$i@$j>
H?M?Message-Id: <$t.$i@$j>
###########################
### Rewriting rules ###
###########################
##
## S1/S2 (and S5/S6 in IDA) are called before the per-mailer S=3D and R=3D =
rwsets.
## for any address types which we export in native format (e.g., uucp !-form)
## rather than pseudodomain format (e.g., mail11 @node.decnet form), we need
## to undo the effects of S3/S7 here, so that the per-mailer rwsets will see
## them as "unqualified" and add the appropriate qualification to them. note
## that this is a deeply divisive issue; these so-called "mixed-mode" addresses
## (e.g., [email protected]) have different interpretations depending
## on who you ask. since you're running our config file, you're getting our
## particular leanings. if you want it done some other way, do it yourself.
## (vix)
################################
# Sender Field Pre-rewriting #
################################
S1
R$+<@$-.UUCP> $2!$1 decapsulate UUCP
###################################
# Recipient Field Pre-rewriting #
###################################
S2
R$+<@$-.UUCP> $2!$1 decapsulate UUCP
###########################
# Name Canonicalization #
###########################
S3
# handle "from:<>" special case
R<> $@@ turn into magic token
# route-addr's look canonical but aren't
R<@$+:$+>$* @$1:$2 unfocus <route-addr>
# already canonical?
R$*<@$+>$* $@$>7$1<@$2>$3 idempotency is good
# basic textual canonicalization -- note lack of RFC733 heuristic here
R$*<$+>$* $2 basic RFC822 parsing
# make sure <@a,@b,@c:user@d> syntax is easy to parse -- undone later
R@$+,$+ @$1:$2 change all "," to ":"
R@$+:$+ $@$>7<@$1>:$2 handle <route-addr>
# more miscellaneous cleanup
R$+:$*;$* $@$1:$2;$3 list syntax
R$+@$+ $:$1<@$2> focus on domain
R$+<$+@$+> $1$2<@$3> move gaze right
R$+@$+<@$+> $1%$2<@$3> a@b@c@d ->a%b%c@d
# things that are still in @-form are ready to eat
R$+<@$+> $@$>7$1<@$2> now canonical
# convert rightmost % to @ (ruleset 7 has the rest of the magic for this)
R$+%$+ $@$>7$1<@$2> user%host
# (ruleset 3 ends here. we don't exit through
# $>7 here as with the other exits from ruleset 3
# since we only exit through S7 when we make a
# change.)
##### special local conversions (exit path from S3)
S7
R$*<@$+%$+>$* $1%$2<@$3>$4 move @ right after %
R$+<@POP>$* $@$1<@POP>$2 POP already OK
#################################
# Final Output Post-rewriting #
#################################
S4
R@ $@ handle <> error addr
R$*<$+>$* $1$2$3 defocus
R@$+:$+:$+ @$1,$2:$3 <route-addr> canonical
R@$+:$+ $@<@$1:$2> route-addr needs <>
#################################
# (IDA) header senders #
#################################
S5
R$+ $@$>1$1 same as envelope
#################################
# (IDA) header recipients #
#################################
S6
R$+ $@$>2$1 same as envelope
#################################
# Utility: strip local domain #
#################################
# this is neccessarily tricky. S0 needs to strip off the local host(s) and
# it may take several passes to do that (consider $-%$j%$j%$j or $U!$-@$j).
# this requires iterate-until-no-change, which is a semantic not directly
# provided by sendmail. sendmail does permit recursion, though, which we
# use. S0 calls S8, which calls itself whenever it makes a change, else falls
# out the bottom when it has nothing left to strip.
#
# S8 starts by calling S3 since on the subsequent recursive calls, a change
# will have been made and the canonicalizion will have been lost. we would
# like to use $>8$>3 but that doesn't work the way you'd expect. the cost
# here is that S3 gets called once at the top even though S3 was called before
# S0 so there's nothing for it to do. this is why S3 must be idempotent and
# also why S3's "no change needed" condition is so close to its top.
S8
R$+ $:$>3$1 needed for recursions
R$*<@$j>$* $:$1<@>$2 @myfqdm
R$*<@$=3Dw>$* $:$1<@>$3 @my alias
R$*<@$=3Dw.$N>$* $:$1<@>$3 @my alias
# here's where we recurse if a change was made
R<@>:$* $@$>8$1 localhost/route-addr
R$*<@>$* $@$>8$1$2 localhost
########################################
# Utility: canonicalize local domain #
########################################
S9
############################################################
############################################################
#####
##### RULESET 0
#####
############################################################
############################################################
S0
# special cases
#
R@ $#local $:$n handle <> form
R$*<@[$+]>$* $#smtp $@[$2] $:$1<@[$2]>$3 numeric internet spec
# localize if possible (rip off @DOMAINs for which we are authoritative)
#
R$*<@$+>$* $:$>8$1<@$2>$3
# Fake hosts in my domain
#
R$+<@POP> $#pop $@$j $:$1 username@POP
# Real hosts in my domain
#
R$*<@$->$* $#smtpr $@DOSLAN3 $:$1<@$2>$3 LOCAL; gw
# Nonlocal mail
#
R$*<@$+>$* $#smtpr $@DOSLAN3 $:$1<@$2>$3 use gateway
# Local mail
#
R$+ $#local $:$1 must be local
############################################################
############################################################
#####
##### Local, POP and Program mailers
#####
############################################################
############################################################
Mlocal, P=3D/bin/mail, F=3DlsDFMmn, S=3D10, R=3D20, A=3Dmail -r $f -d $u
Mprog, P=3D/bin/sh, F=3DlsDFM, S=3D10, R=3D20, A=3Dsh -c $u
Mpop, P=3D/usr/lib/mh/spop, F=3DnsmFDM, S=3D10, R=3D20, A=3Dpop $u
S10
R@ $n errors to mailer-daemon
S20
############################################################
############################################################
#####
##### SMTP to hosts inside the local domain
#####
############################################################
############################################################
Msmtpl, P=3D[IPC], F=3DmDFMuX, S=3D11, R=3D21, A=3DIPC $h, E=3D\r\n
# (we pull off the local hostname in all cases, and then selectively add it
# back on. we would add it back if the aliases aren't shared across all
# hosts in this domain, or if the user is root or one of the others that
# we want to know the hostname for.)
#
S11
R$*<@$j>$* $>3$1$2 strip local host name
R$*<@$+>$* $:$>9$1<@$2>$3 canonicalize domain
# (next two lines are only present if aliases aren't shared across localdom)
R$*<@$+>$* $@$1<@$2>$3 already has an @domain
R$+ $@$1<@$j> add our hostname
# (by running S11 on recipients, we get the above behaviour on To: and Cc:
# headers, as well as for the envelope recipient. this is good since we
# always call $#smtpl with hostname attached, which means that we won't be
# down here at all if $j is in the address (that would have been stripped
# in S0), and we will therefore qualify any domain-less addresses with our
# own hostname before sending them to other hosts in our domain. this is
# all ugly but it's what you have to do if your aliases aren't shared. --vix)
#
S21
R$+ $@$>11$1 nothing special here
############################################################
############################################################
#####
##### SMTP to hosts outside the local domain
#####
############################################################
############################################################
Msmtp, P=3D[IPC], F=3DmDFMuXL, S=3D12, R=3D22, A=3DIPC $h, E=3D\r\n
S12
R<@$+>$* $@<@$1>$2 <route-addr> syntax
R$*<@[$+]>$* $@$1<@[$2]>$3 numeric, lv alone
R$*<@$+>$* $@$>9$1<@$2>$3 canonicalize domain
R$=3DN $@$1<@$j> Add $j to local
R$- $:$1??$(@ $1 $: $) Look up aliases
R$-??$+ $@$1<@$j> Found it - reformat
R$-?? $:$1 undo dammage
R$+ $@$1<@$W> fix up return addr
S22
R$+ $@$>12$1 nothing special here
############################################################
############################################################
#####
##### SMTP to relay host
#####
############################################################
############################################################
Msmtpr, P=3D[IPC], F=3DmDFMuX, S=3D13, R=3D23, A=3DIPC $h, E=3D\r\n
# (we pull off the local hostname in all cases, and then selectively add it
# back on. we would add it back if the user is root or one of the others
# for which we want to know the hostname. Otherwise we want to look like =
we
# are a local user on the relay machine. This is to allow for "cleaner"
# addresses when crossing mail domains. --FMA)
#
S13
R$*<@$j>$* $>3$1$2 strip local host name
R$*<@$+>$* $:$>9$1<@$2>$3 canonicalize domain
R$=3DN $@$1<@$j> qualify nonhidden users
R$- $:$1??$(@ $1 $: $) Look up aliases
R$-??$+ $@$1<@$j> Found it - reformat
R$-?? $:$1 undo dammage
S23
R$+ $@$>13$1 nothing special here
#
# @DEC_COPYRIGHT@
#
# $PreviousLog: sendmail.cf.pd,v $
# Revision 1.1.8.2 1993/09/07 21:42:57 Robert_Wu
# Added latent support for X.25 (PSI) mailer
#
# Decoupled UMC mail from DECnet. This allows the user to add support
# for a UMC relay without dragging in DECnet.
#
# Fixed QAR 12195/12796. Without DECnet enabled, addresses with a "%" in
# them became mangled.
#
# Mailer flags for Mlocal were incorrect. They caused binmail to destroy
# the first line of the header when delivering mail. This caused the
# local "Received:" line to disappear.
#
# Modified default "Received:" header. As per RFC 1123 & 821, the sending
# host's name is DNS validated, and added to the header. This helps to
# leave an audit trail when someone is attempting to spoof the recipient.
# [1993/08/27 07:54:58 Robert_Wu]
#
# Revision 1.1.6.2 92/05/05 10:15:32 devbld_gsf
# First AG_BL6_4 version. Moved from Ag baselevel delivery tree.
#=20
# Revision 1.1.4.3 92/04/17 08:12:56 Todd_Kaehler
# Fix problems is separating DECnet phase IV from phase V addresses.
#=20
# Revision 1.1.4.2 92/04/15 10:15:41 Todd_Kaehler
# Modify for DECnet phase V mail
#=20
# Revision 1.1.3.9 1993/01/08 15:03:59 Todd_Kaehler
# Added -r $f to the A=3D part of the local mailer line.
# [93/01/06 09:21:05 Todd_Kaehler]
#=20
# Revision 1.1.3.8 92/12/22 14:11:20 Todd_Kaehler
# Remove a comment which was un-necessary
# [92/12/18 11:33:38 Todd_Kaehler]
#=20
# Revision 1.1.3.7 92/12/09 08:23:37 Todd_Kaehler
# fix pop and DECnet mail bugs - QAR 8596 and 8869
# [92/12/08 09:02:53 Todd_Kaehler]
#=20
# Revision 1.1.3.6 92/10/23 14:01:37 Todd_Kaehler
# Correct a bad merge on the bsubmit.
# [92/10/23 13:49:47 Todd_Kaehler]
#=20
# Revision 1.1.3.5 92/10/23 13:32:53 Todd_Kaehler
# Fixed DECnet formatting problems and parameterized the configuration
# using m4.
# [92/10/22 12:22:35 Todd_Kaehler]
#=20
# Revision 1.1.3.4 92/10/23 13:20:43 Todd_Kaehler
# Fixed DECnet formatting problems and parameterized the configuration
# using m4.
# [92/10/22 12:22:35 Todd_Kaehler]
#=20
# Revision 1.1.3.3 92/05/05 17:02:44 Al_Delorey
# From Silver: AG_BL6_4
# [92/05/05 17:02:14 Al_Delorey]
#=20
# Revision 1.1.3.2 92/02/13 09:37:40 Todd_Kaehler
# Initial submit for mailsetup.
#=20
# Revision 1.1.2.4 92/02/11 15:51:55 Todd_Kaehler
# Remove comments which refer to ULTRIX and unsupported stuff.
#=20
# Revision 1.1.2.3 92/02/11 14:02:45 Todd_Kaehler
# fixed leader in header
#=20
# Revision 1.1.2.2 92/02/11 13:58:21 Todd_Kaehler
# initial product description file for the mailsetup script
#=20
# $PreviousEndLog$
#=20
# @(#)$RCSfile: sendmail.cf.pd,v $ $Revision: 1.1.2.4 $ (DEC) $Date: 1994/09/16 15:07:55 $=
=20
#
# cruft to let old bindsetup work. these macros are not used.
#
DDLOCAL
DADOSLAN3
############################################################ @Ltag(Intro)
############################################################
#####
##### SENDMAIL CONFIGURATION FILE
#####
##### Paul Vixie, forked off on 9-December-90
##### Paul Vixie, major MAIL11/MR work on 17-July-1991
##### Paul Vixie, Todd Kaehler and Fred Avolio: parameterized, August 1992
#####
#####
############################################################
############################################################
## predefined
# $y decnet node name (if known) (if running a recent binary)
# $w fully-qualified hostname
# $j same as $w (except IDA, which is all-lower-case, strip-at-first-dot)
##
############################################################ @Ltag(LocalInfo)
### local info
############################################################
# parent domain
DPLOCAL
# my domain
DNLOCAL
# name exported on external internet mail
DWDOSLAN3
# my official hostname
Dj$w
#
# aliases at the $P level -- we think we are authoritative for these
#
CdLOCAL
#
# usernames which will be @host qualified on outbound localdom mail
#
CNroot postmaster news uucp mailer-daemon rdist nobody daemon pop
#
# trash top-level domains -- don't use $[...$] on names ending with these
#
CTUUCP USENET UMC DNET=20
=20
############################################################
#
# General configuration information
#
############################################################
# Version Number
DV1.1.2.4/19Feb97-1254PM
##########################
### Special macros ###
##########################
# my name
DnMAILER-DAEMON
# UNIX header format
DlFrom $g $d
# delimiter (operator) characters
Do.:%@!^=3D/[]
# format of a total name
Dq$?x$x $.<$g>
# SMTP login message
De$j Sendmail $v ($V) $b
###################
### Options ###
###################
# wait 5 minutes for newaliases to complete
Oa
# location of alias file
OA/var/adm/sendmail/aliases
# default delivery mode (deliver in background)
Odbackground
# temporary file mode
OF0600
# default UID
Ou1
# default GID
Og1
# location of help file
OH/usr/share/lib/sendmail.hf
# log level
OL9
# include sender if she's on an alias to which she's sending
Om
# queue directory
OQ/var/spool/mqueue
# read timeout -- violates protocols
Or1h
# status file
OS/var/adm/sendmail/sendmail.st
# queue up everything before starting transmission
Os
# use separate envelope/header rewriting rulesets (IDA)
O/
# default timeout interval
OT3d
# load average for forcing "Odq" behaviour
Ox20
# load average for refusing connections
OX12
###############################
### Message precedences ###
###############################
Pfirst-class=3D0
Pspecial-delivery=3D100
Pjunk=3D-100
#########################
### Trusted users ###
#########################
Troot daemon uucp news
#############################
### Format of headers ###
#############################
H?P?Return-Path: <$g>
#HReceived: by $j; id $i; $b
HReceived: $?sfrom $s $.by $j; ($v/$V)
id $i; $b
H?D?Resent-Date: $a
H?D?Date: $a
H?F?Resent-From: $q
H?F?From: $q
H?x?Full-Name: $x
HSubject:
H?M?Resent-Message-Id: <$t.$i@$j>
H?M?Message-Id: <$t.$i@$j>
###########################
### Rewriting rules ###
###########################
##
## S1/S2 (and S5/S6 in IDA) are called before the per-mailer S=3D and R=3D =
rwsets.
## for any address types which we export in native format (e.g., uucp !-form)
## rather than pseudodomain format (e.g., mail11 @node.decnet form), we need
## to undo the effects of S3/S7 here, so that the per-mailer rwsets will see
## them as "unqualified" and add the appropriate qualification to them. note
## that this is a deeply divisive issue; these so-called "mixed-mode" addresses
## (e.g., [email protected]) have different interpretations depending
## on who you ask. since you're running our config file, you're getting our
## particular leanings. if you want it done some other way, do it yourself.
## (vix)
################################
# Sender Field Pre-rewriting #
################################
S1
R$+<@$-.UUCP> $2!$1 decapsulate UUCP
###################################
# Recipient Field Pre-rewriting #
###################################
S2
R$+<@$-.UUCP> $2!$1 decapsulate UUCP
###########################
# Name Canonicalization #
###########################
S3
# handle "from:<>" special case
R<> $@@ turn into magic token
# route-addr's look canonical but aren't
R<@$+:$+>$* @$1:$2 unfocus <route-addr>
# already canonical?
R$*<@$+>$* $@$>7$1<@$2>$3 idempotency is good
# basic textual canonicalization -- note lack of RFC733 heuristic here
R$*<$+>$* $2 basic RFC822 parsing
# make sure <@a,@b,@c:user@d> syntax is easy to parse -- undone later
R@$+,$+ @$1:$2 change all "," to ":"
R@$+:$+ $@$>7<@$1>:$2 handle <route-addr>
# more miscellaneous cleanup
R$+:$*;$* $@$1:$2;$3 list syntax
R$+@$+ $:$1<@$2> focus on domain
R$+<$+@$+> $1$2<@$3> move gaze right
R$+@$+<@$+> $1%$2<@$3> a@b@c@d ->a%b%c@d
# things that are still in @-form are ready to eat
R$+<@$+> $@$>7$1<@$2> now canonical
# convert rightmost % to @ (ruleset 7 has the rest of the magic for this)
R$+%$+ $@$>7$1<@$2> user%host
# (ruleset 3 ends here. we don't exit through
# $>7 here as with the other exits from ruleset 3
# since we only exit through S7 when we make a
# change.)
##### special local conversions (exit path from S3)
S7
R$*<@$+%$+>$* $1%$2<@$3>$4 move @ right after %
R$+<@POP>$* $@$1<@POP>$2 POP already OK
#################################
# Final Output Post-rewriting #
#################################
S4
R@ $@ handle <> error addr
R$*<$+>$* $1$2$3 defocus
R@$+:$+:$+ @$1,$2:$3 <route-addr> canonical
R@$+:$+ $@<@$1:$2> route-addr needs <>
#################################
# (IDA) header senders #
#################################
S5
R$+ $@$>1$1 same as envelope
#################################
# (IDA) header recipients #
#################################
S6
R$+ $@$>2$1 same as envelope
#################################
# Utility: strip local domain #
#################################
# this is neccessarily tricky. S0 needs to strip off the local host(s) and
# it may take several passes to do that (consider $-%$j%$j%$j or $U!$-@$j).
# this requires iterate-until-no-change, which is a semantic not directly
# provided by sendmail. sendmail does permit recursion, though, which we
# use. S0 calls S8, which calls itself whenever it makes a change, else falls
# out the bottom when it has nothing left to strip.
#
# S8 starts by calling S3 since on the subsequent recursive calls, a change
# will have been made and the canonicalizion will have been lost. we would
# like to use $>8$>3 but that doesn't work the way you'd expect. the cost
# here is that S3 gets called once at the top even though S3 was called before
# S0 so there's nothing for it to do. this is why S3 must be idempotent and
# also why S3's "no change needed" condition is so close to its top.
S8
R$+ $:$>3$1 needed for recursions
R$*<@$j>$* $:$1<@>$2 @myfqdm
R$*<@$=3Dw>$* $:$1<@>$3 @my alias
R$*<@$=3Dw.$N>$* $:$1<@>$3 @my alias
# here's where we recurse if a change was made
R<@>:$* $@$>8$1 localhost/route-addr
R$*<@>$* $@$>8$1$2 localhost
########################################
# Utility: canonicalize local domain #
########################################
S9
############################################################
############################################################
#####
##### RULESET 0
#####
############################################################
############################################################
S0
# special cases
#
R@ $#local $:$n handle <> form
R$*<@[$+]>$* $#smtp $@[$2] $:$1<@[$2]>$3 numeric internet spec
# localize if possible (rip off @DOMAINs for which we are authoritative)
#
R$*<@$+>$* $:$>8$1<@$2>$3
# Fake hosts in my domain
#
R$+<@POP> $#pop $@$j $:$1 username@POP
# Real hosts in my domain
#
R$*<@$->$* $#smtpl $@$2 $:$1<@$2>$3 LOCAL; no gw
# Nonlocal mail
#
R$*<@$+>$* $#smtp $@$2 $:$1<@$2>$3 go direct
# Local mail
#
R$+ $#local $:$1 must be local
############################################################
############################################################
#####
##### Local, POP and Program mailers
#####
############################################################
############################################################
Mlocal, P=3D/bin/mail, F=3DlsDFMmn, S=3D10, R=3D20, A=3Dmail -r $f -d $u
Mprog, P=3D/bin/sh, F=3DlsDFM, S=3D10, R=3D20, A=3Dsh -c $u
Mpop, P=3D/usr/lib/mh/spop, F=3DnsmFDM, S=3D10, R=3D20, A=3Dpop $u
S10
R@ $n errors to mailer-daemon
S20
############################################################
############################################################
#####
##### SMTP to hosts inside the local domain
#####
############################################################
############################################################
Msmtpl, P=3D[IPC], F=3DmDFMuX, S=3D11, R=3D21, A=3DIPC $h, E=3D\r\n
# (we pull off the local hostname in all cases, and then selectively add it
# back on. we would add it back if the aliases aren't shared across all
# hosts in this domain, or if the user is root or one of the others that
# we want to know the hostname for.)
#
S11
R$*<@$j>$* $>3$1$2 strip local host name
R$*<@$+>$* $:$>9$1<@$2>$3 canonicalize domain
# (next two lines are only present if aliases aren't shared across localdom)
R$*<@$+>$* $@$1<@$2>$3 already has an @domain
R$+ $@$1<@$j> add our hostname
# (by running S11 on recipients, we get the above behaviour on To: and Cc:
# headers, as well as for the envelope recipient. this is good since we
# always call $#smtpl with hostname attached, which means that we won't be
# down here at all if $j is in the address (that would have been stripped
# in S0), and we will therefore qualify any domain-less addresses with our
# own hostname before sending them to other hosts in our domain. this is
# all ugly but it's what you have to do if your aliases aren't shared. --vix)
#
S21
R$+ $@$>11$1 nothing special here
############################################################
############################################################
#####
##### SMTP to hosts outside the local domain
#####
############################################################
############################################################
Msmtp, P=3D[IPC], F=3DmDFMuXL, S=3D12, R=3D22, A=3DIPC $h, E=3D\r\n
S12
R<@$+>$* $@<@$1>$2 <route-addr> syntax
R$*<@[$+]>$* $@$1<@[$2]>$3 numeric, lv alone
R$*<@$+>$* $@$>9$1<@$2>$3 canonicalize domain
R$=3DN $@$1<@$j> Add $j to local
R$- $:$1??$(@ $1 $: $) Look up aliases
R$-??$+ $@$1<@$j> Found it - reformat
R$-?? $:$1 undo dammage
R$+ $@$1<@$W> fix up return addr
S22
R$+ $@$>12$1 nothing special here
############################################################
############################################################
#####
##### SMTP to relay host
#####
############################################################
############################################################
Msmtpr, P=3D[IPC], F=3DmDFMuX, S=3D13, R=3D23, A=3DIPC $h, E=3D\r\n
# (we pull off the local hostname in all cases, and then selectively add it
# back on. we would add it back if the user is root or one of the others
# for which we want to know the hostname. Otherwise we want to look like =
we
# are a local user on the relay machine. This is to allow for "cleaner"
# addresses when crossing mail domains. --FMA)
#
S13
R$*<@$j>$* $>3$1$2 strip local host name
R$*<@$+>$* $:$>9$1<@$2>$3 canonicalize domain
R$=3DN $@$1<@$j> qualify nonhidden users
R$- $:$1??$(@ $1 $: $) Look up aliases
R$-??$+ $@$1<@$j> Found it - reformat
R$-?? $:$1 undo dammage
S23
R$+ $@$>13$1 nothing special here
Script started on Wed Feb 19 12:53:36 1997
# mailsetup
MAIL SETUP
Mailsetup configures the sendmail(8) utility. This allows users
on your local machine to send and/or receive mail in a networked
environment.
Mailsetup will prompt you for information. Some of these questions
have a default answer contained within square brackets. If you
simply press <Return>, the default answer is assumed.
Continue ([y]/n) ? y
=07
SETUP BIND
BIND (the Internet Naming Service) has not been setup for this
machine. If your site is connected with the Internet, it is
strongly advised that you setup BIND first.
Do you want to do a bindsetup first ([y]/n) ? n
TYPE OF MAIL SETUP
You may perform a quick setup, or an advanced setup of mail. A
quick setup is ideal for workstations that wish to have all of
their mail handled by a centralized machine. Quick setup:
- Forwards all mail to a relay machine. This implies
that users can create and send mail, but cannot read
it on the local machine.
- Formats the mail so that it looks as it was created on
the relay.
- Uses TCP/IP (SMTP) to send the mail to the relay.
- Since no mail is delivered locally, to read your mail
you must login to another host. Usually this is
a central time share machine.
Do you wish to do a quick setup ([y]/n) ? n
HOST DEFINITION
The unqualified hostname is the name of this machine without the
domain extension. For example: a machine called `foo.dec.com'
would have an unqualified name of `foo'.
Enter the unqualified hostname for this machine [ DOSLAN3 ]:=20
=20
[ DOSLAN3 ] is this correct ([y]/n) ?=20
=07
The m4 configuration file /var/adm/sendmail/DOSLAN3.m4
has been found.
Do you wish to use this file for default values ([y]/n) ? n
DOMAIN DEFINITION
If your machine is part of a registered domain, that name should
be defined here. Some example domains are ZK3.DEC.COM, MIT.EDU,
CSS.GOV and CS.INDIANA.EDU.
If you do not have a domain, enter `LOCAL' here.
Enter the BIND domain name for this machine [ DOSLAN3 ]: LOCAL
[ LOCAL ] is this correct ([y]/n) ?=20
=20
=20
ADDING A GENERAL RELAY
Most sites should define a general relay. If your host cannot
resolve how to deliver a mail message, the mail is forwarded to
this general relay for processing.
Do you wish to add a general purpose relay ([y]/n) ? n
LOCAL USERS AND ALIASES
Some user names, such as `root', `daemon', and `system', are
common to all machines. To avoid confusion any outgoing mail
sent by these local users are always qualified with your
machine's name, e.g. "From: root@DOSLAN3".
The following is the list of local users:
daemon mailer-daemon news nobody pop postmaster
rdist root uucp
Do you wish to modify this local users/aliases list (y/[n]) ? n
Do you want aliases in /var/adm/sendmail/aliases to be considered local?
Aliases considered local ([y]/n) ?=20
=20
=20
UUCP SECTION
This section sets up your machine for UUCP mail. If you use UUCP
at your site or need to setup a UUCP relay answer `yes' to the
the following question.
Do you wish to recognize UUCP style addresses ([y]/n) ? n
DECnet SECTION
This section sets up your machine for DECnet mail. If you use
DECnet in your organization, or need to deal with DECnet style
addresses answer `yes' to the following question.
Do you wish to recognize DECnet style addresses ([y]/n) ? n
UMC SECTION
This section sets up your machine for UMC mail. If you use UMC
at your site or need to deal with UMC style addresses answer `yes'
to the following question.
Do you wish to recognize UMC style addresses ([y]/n) ? n
NICKNAMES FOR THIS MACHINE
Are there any other names that are used to send mail to this
machine? For instance, if you have changed this host's name (or
plan to in the near future), a nickname allows sendmail to
recognize both names, "DOSLAN3" and the nickname, as synonyms
for this machine.
Another good use for nicknames occurs when a host receives mail
from multiple different networks. A host's name may not be the
same on all of the different networks. Again, nicknames allows
sendmail to recognize these different names as synonyms for this
host.
Do you wish to enter nicknames for this machine (y/[n]) ? n
MAILSETUP CONFIGURATION COMPLETE
Do you wish to complete the installation? If you answer `yes',
the new configuration will replace `sendmail.cf', and sendmail
will be restarted.
Complete the setup ([y]/n) ?=20
=20
Restarting sendmail...
820 aliases, longest (appers) 520 bytes, 26164 bytes total
SMTP Mail Service restarted
# cd /usr/adm
# cd sendmail
# ls -lat | mre=08 =08=08 =08ore
=0D=1B[Ktotal 365
- -rw-rw-r-- 1 mail mail 4096 Feb 19 12:54 aliases.dir
- -rw-rw-r-- 1 mail mail 32768 Feb 19 12:54 aliases.pag
drwxr-xr-x 2 bin mail 1024 Feb 19 12:54 .
- -rw-r--r-- 1 root mail 14741 Feb 19 12:54 sendmail.cf
- -rw-r--r-- 1 root bin 14741 Feb 19 12:54 DOSLAN3.cf
- -rw-rw-r-- 1 root bin 3928 Feb 19 12:54 DOSLAN3.m4
- -rw-r--r-- 1 root mail 0 Feb 19 12:53 tammy_file
- -rw-r--r-- 1 root mail 98 Feb 19 12:53 mailsetup
- -rw-r--r-- 1 bin mail 808 Feb 19 12:50 sendmail.st
drwxr-xr-x 12 xwindow backup 1024 Feb 19 12:10 ..
- -rw-rw-r-- 1 mail mail 28155 Feb 19 08:58 aliases
- -rw-r--r-- 1 bin mail 14741 Feb 11 14:58 sendmail.cf.0
- -rw-r--r-- 1 root bin 30195 Feb 11 14:57 sendmail.m4
- -rw-r--r-- 1 bin mail 19670 Feb 11 14:55 sendmail.cf.1
- -rw-r--r-- 1 root mail 14741 Feb 11 14:54 sendmail.cf.old
- -rw-r--r-- 1 bin mail 14741 Jan 28 13:33 sendmail.cf.2
- -rw-r--r-- 1 bin mail 14741 Jan 21 08:11 sendmail.cf.3
- -rw-rw-r-- 1 root mail 146 Dec 20 12:22 Makefile.cf.DOSLAN3
lrwxrwxrwx 1 root kmem 17 Nov 27 08:42 sendmail -> /usr/lib/sendm
ail
- -rw-r--r-- 1 root kmem 24855 Nov 27 08:31 sendmail.cf.doslan3
- -rw-r--r-- 1 bin mail 14743 Nov 27 08:30 sendmail.cf.4
=1B[24;1H=1B[K=1B[7mstdin=1B[27m=0D=1B[K=1B[m=1B(B# p=08 =08cd =08 =08=08 =
=08=08 =08cd=08 =08=08 =08exit
script done on Wed Feb 19 12:55:26 1997
=20=20=20=20=20=20=20=20=20=20
Tammy Sandefur
Digital Equipment
Ultrix & Osf Network Support
[email protected]
------- End of Forwarded Message
|