[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference smurf::dec_mls_plus

Title:dec_mls_plus
Moderator:SMURF::BAT
Created:Mon Nov 29 1993
Last Modified:Thu Jun 05 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:534
Total number of notes:2544

448.0. "mail -- xf and qf files disappear" by SMURF::BAT (Segui la tua beatitudine) Mon Feb 10 1997 14:45

From:	SMURF::BAT          "Barbara A. Thomson ZKO3-2/X46 1-2955" 10-FEB-1997 14:08:16.33
To:	KAMLIA::BOKHAN
CC:	BAT
Subj:	MLS+ dxmail -- jobs (xf and qf files) disappear


	Boke,

	Tammy called and said that she needs some more hints about
	how to find out what's going on with mail.

	She's eliminated all the extraneous stuff down:

	1.  she's checked user's clearances/protections on mail
		spool directory

	2.  they are using shipped sendmail.cf

	3.  scenario:  if a local user sends mail to another
		local user (not even exporting the mail spool
		directory), it usually works, many times in
		a row, and then all of a sudden it will stop
		working and the df files go into zombie --
		the xf file disappears -- turn on debugging
		and even the qf file is gone so there are no
		messages.

	She said there are no messages in syslog.

	What other debugging techniques can she try?

	Or have you ever heard of this happening?

	(This is happening at Trident)
    
T.RTitleUserPersonal
Name
DateLines
448.1some questionsSMURF::BATSegui la tua beatitudineMon Feb 10 1997 14:5112
    Saw Boke in the hall -- he's not seen it happen before.  Tammy,
    we'd like to try and reproduce it here.  
    
    1.	When you issue the command from the command line, which
    	mail are you using?  /usr/bin/mail? /usr/ucb/mail?
    
    	Can you give us the syntax?  And the sample "loop"?
    
    2.	When you say each user is local, do you mean each username 
    	(sender/receiver) is in /etc/passwd?
    	Is NIS running? (i.e., /etc/svc.conf does not have yp entries).
    
448.2mailsetup configSMURF::BATSegui la tua beatitudineMon Feb 10 1997 16:2173
From:	KAMLIA::bokhan "Mark Bokhan USG  10-Feb-1997 1506" 10-FEB-1997 15:11:00.59
To:	bat@dec:.zko.smurf
CC:	bokhan@DEC:.zko.kamlia
Subj:	Re: MLS+ dxmail -- jobs (xf and qf files) disappear 

Haven't heard of this happening, especially locally.

>	3.  scenario:  if a local user sends mail to another
>		local user (not even exporting the mail spool
>		directory), it usually works, many times in
>		a row, and then all of a sudden it will stop
>		working and the df files go into zombie --
>		the xf file disappears -- turn on debugging
>		and even the qf file is gone so there are no
>		messages.

(okay this part is after we talked at the coffee station...)

Most likely they're using /usr/bin/mail.  This is good because
/usr/bin/mail does the actual local mail deliveries.

see if the local user is mailing to a local user, as seen by
mailsetup...  grep for ^CN for a list of the local users.
The stock sendmail.cf will have:

# grep ^CN /var/adm/sendmail/sendmail.cf
CNdaemon mailer-daemon news nobody pop postmaster rdist root uucp

Notice how "bokhan" is missing from the list...
When you run mailsetup, even if you do the express/easy setup, it'll
ask for local users in the end.  This is where I add them in mailsetup:

Since you are performing a `Quick Setup', incoming mail will be
forwarded to the relay, except for these local users.  Mail sent
to these local users will not be forwarded to the relay, but will
be delivered locally on this machine.

NOTE: if you plan to add any aliases into the system aliases file
    (/var/adm/sendmail/aliases), they must be added to this list.

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]) ? y

The following have been defined for the local users and aliases
class:

    daemon mailer-daemon news nobody pop postmaster
    rdist root uucp

add to list, delete from list or continue on (a/d/c)? a

Enter additions to class (space or <cr> separated) - end list with a <cr>
 ? bokhan
 ?

The following have been defined for the local users and aliases
class:

    bokhan daemon mailer-daemon news nobody pop
    postmaster rdist root uucp

add to list, delete from list or continue on (a/d/c)? c

                 MAILSETUP CONFIGURATION COMPLETE



------
Find out if NIS is involved.  Sigh if it is :)
    
448.3trident is "breathing down her neck"SMURF::BATSegui la tua beatitudineTue Feb 18 1997 18:5622
Date: Tue, 18 Feb 1997 12:24:12 -0500
From: [email protected] (Tammy Sandefur)
To: [email protected]
Subject: more info on mail problem

Hi Bat,

  How's it going?  Friday night after looking at the audit log, I had Laura
change the mailserver to another alpha 3000/600 we let mail run all weekend.
This morning there are df's and no qf's.

  Went to another alpha, a 3000/400 set it up as a mailserver and pounded mail
and that system does not have a problem.

  This makes no sense.  I give up.

          
Tammy Sandefur
Digital Equipment
Ultrix & Osf Network Support
[email protected]
    
448.4leave all but mail out of equationSMURF::BATSegui la tua beatitudineWed Feb 19 1997 10:2412
From:	TSC::"[email protected]" "Tammy Sandefur" 19-FEB-1997 08:11:05.40
To:	"Barbara A. Thomson ZKO3-2/X46 1-2955" <smurf::bat>
CC:	
Subj:	Re: mail problem

Remember there is no nis and nfs and it only happens on 3000/600's.
I've tried it on a 3000/300 and a 400/166.

Bottom line the machine is a mailserver. If the remote node is down
mail stays queued till the remote node is up.  Out of 30 messages
queued.  5 went out and 25 df's remain with no qf's.  

448.5we have a configuration to try and reproduce it onSMURF::BATSegui la tua beatitudineWed Feb 19 1997 12:0819
    Tammy, Lee says that the 600 is the fastest of the lot soperhaps it is
    a timing problem.  We tried to reproduce it, but were unable to get
    things queued up.  We must have setup mail server wrong.  Can you
    please give us more information so we can try and reproduce this?
    
    1.	First, just checking: you are running EFT T4.0, right?  Or does
    	this happen on both V3.1A and T4.0?
    
    2.	How did you answer the mailsetup questions?  Can you run script
    	and send us the script?   Or the output from the screen.
    
    3.	What are the user's characteristics... all syshi clearance?
    	Sending at different levels?  Can you have them run script
    	and send the script?  Or the output from the screen.
    
    4.	And if you can run script, run it to show the xf files missing,
    	etc. Or the output from the screen. 
    
    Thanks.
448.6Tammy said she'd get more detail on mailsetupSMURF::BATSegui la tua beatitudineWed Feb 19 1997 13:1217
From:	TSC::"[email protected]" "Tammy Sandefur" 19-FEB-1997 12:20:14.97
To:	Segui la tua beatitudine <smurf::bat>
CC:	
Subj:	Re: mail xf and qf files disappearing

Bat,

   This has not been tested on T4.0, only 3.1A.  Run mailsetup,
set the node up as a mailhub.  Next, take a system down you are mailing
to, so mail queues on the mailhub.  Get about 30 messages queued.
boot the node that's down watch sendmail start to process the mail.
You should see several messages go out then lingering df's.
    The mail is being sent out as "unclassified".  The only way you
will get the mail to queue long enough is to take a the receiving node
down.

Tammy
448.7more double-checkingSMURF::BATSegui la tua beatitudineWed Feb 19 1997 15:197
    Tammy, just to clarify something you said earlier... were all systems
    that worked (3000-300, 400/166, etc.) tested as mailhubs? 
    
    Is the 400 an AS 400/166 or a 3000-400 ?  
    
    Thanks
    BAT
448.8sendmail.cf's and mailsetup responsesSMURF::BATSegui la tua beatitudineWed Feb 19 1997 17:281232
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

    
448.9we were able to reproduceSMURF::BATSegui la tua beatitudineFri Feb 21 1997 13:0813
    Tammy was able to reproduce the situation for us -- Lee got a disk
    and I cloned dkbeer V3.1A onto it, and we put it on harwich, which is
    the 3000-600.  However, she was also able to reproduce it on okok, 
    which is a 3000-300.
    
    It appears to work fine if you are doing default_unlabelled or
    default_tsix1.0 but if you setup the two nodes to use default_tnet,
    then it fails to send out the mail.  The df files are still there, but
    the qf files have gone.  I still need to verify that this is a trusted
    networking problem and not a sendmail problem.  I'll have someone else
    check what we observed.  
    
    If it does checkout, then we'll need to have an IPMT.
448.10test patch availableSMURF::BATSegui la tua beatitudineThu Feb 27 1997 18:5418
    IPMT # HPAQ211ET was filed.
    
    I have a test patch for them to try out.
    
    ftp psycho.zk3.dec.com
    anonymous
    cd pub/sendmail
    get sendmail
    
    To install:
    
    # /sbin/init.d/sendmail stop
    # mv /usr/sbin/sendmail /usr/sbin/sendmail.r29
    # mv sendmail /usr/sbin/sendmail
    # /tcb/bin/setfiles /usr/sbin/sendmail
    # /sbin/init.d/sendmail start