harrys@tons61.UUCP (Harry Skelton) (07/19/89)
I have a problem with sendmail that I can't figure out (yet!). Due to
my experience with sendmail and remote sites hammering at me to get my
header's fixed, I would like to see if someone could figure this problem
out. It seems my "From" headers get mundged by my configuration. I have
not changed it much (only for uucp support) but I must still be missing
something. Here is an example of my header:
From: harrys@tons61.tons61
I also get other things, like the following:
(From the remote site)
From uucp Tue Jul 18 00:56 pdt 1989
id AA25267; Tue, 18 Jul 89 00:56:09 pst
From: tons61!uunet!sco!fedsco!jayh@daitc.tons61
Received: from uunet.UUCP by daitc.mil (5.61++/29-June-89) with UUCP
id AA04701; Tue, 18 Jul 89 03:11:23 -0400
Received: from sco.UUCP by uunet.uu.net (5.61/1.14) with UUCP
id AA09632; Tue, 18 Jul 89 02:57:28 -0400
Message-Id: <8907180657.AA09632@uunet.uu.net>
X-Mailer: SCO Office Portfolio (version 1.0)
To: tons61!harrys@daitc.tons61
Subject: Re: failed mail
(FROM MY SITE!)
From sco!uunet!daitc!tons61!harrys Mon Jul 17 08:07:00 1989
Received: from daitc.UUCP by uunet.uu.net (5.61/1.14) with UUCP
id AA18546; Mon, 17 Jul 89 03:26:48 -0400
Received: from tons61.UUCP by daitc.mil (5.61++/29-June-89) with UUCP
id AA25727; Mon, 17 Jul 89 03:00:39 -0400
Received: by tons61.UUCP (4.12/4.7)
id AA05862; Mon, 17 Jul 89 00:33:43 est
From: uunet!daitc!tons61.tons61!harrys (Harry Skelton)
Message-Id: <8907170433.AA05862@tons61.UUCP>
Subject: Re: failed mail
To: sco!fedsco!jayh@uunet.tons61
Date: Mon, 17 Jul 89 0:33:43 EDT
Priority: 1
In-Reply-To: <8907150718.AA16284@uunet.uu.net>; from "jayh@daitc.tons61" at Jul 14, 89 4:14 pm
X-Mailer: Elm [version 2.1 beta-test]
I have placing this into other's laps but I am gearing up for a large UUCP
node link in this area for usenet news and UUCP activity (getting lots of
Telebits!!!). I would like to be ready to support other sites when 'daitc'
goes off-line.
Have a look. If you can figure it out or direct me to a book or resource
that quickly explains it, then I'll be deeply in your debt.
sendmail.cf follows:
############################################################
############################################################
#####
##### SENDMAIL CONFIGURATION FILE
#####
##### @(#)css1.mc 4.2 8/14/86
#####
############################################################
############################################################
############################################################
### local info
############################################################
# domain
DDUUCP
CDUUCP
# major ARPA relay host
DR
# known SMTP hosts (this domain only) -- only $R need be complete
# FS/usr/lib/aliases
FS/etc/hosts %*s %s
# known uucp hosts
# CUdaitc obdient attctc
# let smail handle it!
CU
# known top-level domains
CTUUCP ARPA LOCAL BITNET
# official hostname
Dj$w.UUCP
# UUCP name
DU$w
############################################################
#
# General configuration information
#
# This information is basically just "boiler-plate"; it must be
# there, but is essentially constant.
#
# Information in this file should be independent of location --
# i.e., although there are some policy decisions made, they are
# not specific to Berkeley per se.
#
# @(#)ccibase.m4 4.2 12/20/84
#
############################################################
# @(#)version.m4 4.7 8/31/83
DV4.7
##########################
### Special macros ###
##########################
# my name
DnMAILER-DAEMON
# UNIX header format
DlFrom $f $d
# delimiter (operator) characters
Do.:%@!^=/[]
# format of a total name
Dq$f$?x ($x)$.
# SMTP login message
De$j Sendmail $v/$V ready at $b
# forwarding host -- redefine this if you can't talk to the relay directly
DFdaitc
###################
### Options ###
###################
# location of alias file
OA/usr/lib/aliases
# default delivery mode (deliver in background)
Odbackground
# (don't) connect to "expensive" mailers
#Oc
# temporary file mode -- 0600 for secure mail, 0644 for permissive
OF0600
# default GID
Og1
# location of help file
OH/usr/lib/sendmail.hf
# log level
OL9
# default messages to old style
Oo
# queue directory
OQ/usr/spool/mqueue
# read timeout -- violates protocols
Or2h
# status file
OS/usr/lib/sendmail.st
# queue up everything before starting transmission
Os
# default timeout interval
OT3d
# default UID
Ou1
###############################
### Message precedences ###
###############################
Pfirst-class=0
Pspecial-delivery=100
Pjunk=-100
#########################
### Trusted users ###
#########################
Troot
Tdaemon
Tuucp
Tnetwork
#############################
### Format of headers ###
#############################
H?P?Return-Path: <$g>
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@$j
H?x?Full-Name: $x
HSubject:
# HPosted-Date: $a
# H?l?Received-Date: $b
H?M?Resent-Message-Id: <$t.$i@$j>
H?M?Message-Id: <$t.$i@$j>
###########################
### Rewriting rules ###
###########################
################################
# Sender Field Pre-rewriting #
################################
S1
#R$*<$*>$* $1$2$3 defocus
###################################
# Recipient Field Pre-rewriting #
###################################
S2
#R$*<$*>$* $1$2$3 defocus
#################################
# Final Output Post-rewriting #
#################################
S4
R@ $@ handle <> error addr
# UUCP must always be presented in old form
R$+<@$-.UUCP> $2!$1 u@h.UUCP => h!u
# externalize local domain info
R$*<$*LOCAL>$* $1<$2$w>$3 change local info
R$*<$+>$* $1$2$3 defocus
R@$+:$+:$+ @$1,$2:$3 <route-addr> canonical
###########################
# Name Canonicalization #
###########################
S3
# handle "from:<>" special case
R<> $@@ turn into magic token
# basic textual canonicalization
R$*<$+>$* $2 basic RFC821/822 parsing
R$+ at $+ $1@$2 "at" -> "@" for RFC 822
# give this host a chance to clean up the address
R$+ $:$>8$1 host dependent cleanup
# make sure <@a,@b,@c:user@d> syntax is easy to parse -- undone later
R@$+,$+ @$1:$2 change all "," to ":"
# localize and dispose of domain-based addresses
R@$+:$+ $@$>6<@$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$+<@$+> $@$>6$1<@$2> already canonical
# convert old-style addresses to a domain-based address
R$-:$+ $@$>6$2<@$1> host:user
R$-.$+ $@$>6$2<@$1> host.user
R$+^$+ $1!$2 convert ^ to !
R$-!$+ $:$>6$2<@$1.UUCP> resolve uucp names
############################################################
############################################################
#####
##### Local and Program Mailer specification
#####
##### @(#)localm.m4 4.1 7/25/83
#####
############################################################
############################################################
Mlocal, P=/bin/mail, F=rlsDFMmn, S=10, R=20, A=mail -d $u
Mprog, P=/bin/sh, F=lsDFMe, S=10, R=20, A=sh -c $u
S10
R@ MAILER-DAEMON errors to mailer-daemon
############################################################
############################################################
#####
##### Smtp Mailer specification
#####
##### @(#)ccismtpm.m4 4.2 12/20/84
#####
############################################################
############################################################
Msmtp, P=[IPC], F=msDFMueCX, S=11, R=21, A=IPC $h
S11
R$*<@$+>$* $@$1<@$2>$3 already ok
R$+ $@$1<@$w> tack on our hostname
S21
############################################################
############################################################
#####
##### UUCP Mailer specification
#####
##### @(#)cciuucpm.m4 4.2 12/20/84
#####
############################################################
############################################################
Muucp, P=/bin/smail, F=sDFMhum, S=14, R=24, M=100000,
A=smail -h $w -H $D -v $u
S13
R$+ $:$>5$1 convert to old style
R$=w!$+ $2 strip local name
R$+ $:$w!$1 stick on our host name
S23
R$+ $:$>5$1 convert to old style
############################################################
############################################################
#####
##### Provide Backward Compatibility
#####
##### @(#)ccicompat.m4 4.3 2/22/85
#####
############################################################
############################################################
#####################################################
# General code to convert back to old style names #
#####################################################
S5
R$*<$*>$* $1$2$3 defocus
R$+@LOCAL $w!$1 list@LOCAL => $w!list
R$+@$-.LOCAL $2!$1 u@h.LOCAL => h!u
R$+@$+.UUCP $2!$1 u@h.UUCP => host!u
R$+@$=S $@$2!$1 u@smtphost => host!u
R$+@$+.ARPA $1@$2 u@host.ARPA => u@host
# We need to ensure that nothing with an "@" gets out of here alive...
# We all know how badly uucp sites screw up with atsigned things.
############################################################
############################################################
#####
##### RULESET ZERO PREAMBLE
#####
##### The beginning of ruleset zero is constant through all
##### configurations.
#####
##### @(#)ccizerobase.m4 4.2 12/20/84
#####
############################################################
############################################################
S0
# first make canonical
R$*<$*>$* $1$2$3 defocus
R$+ $:$>3$1 make canonical
# handle special cases.....
R@ $#local$:MAILER-DAEMON handle <> form
R$*<@[$+]>$* $#smtp$@[$2]$:$1@[$2]$3 numeric internet spec
# resolve the local hostname to "LOCAL"
R$*<$*$=w.LOCAL>$* $1<$2LOCAL>$4 thishost.LOCAL
R$*<$*$=w.UUCP>$* $1<$2LOCAL>$4 thishost.UUCP
R$*<$*$=w>$* $1<$2LOCAL>$4 thishost
# Mail addressed explicitly to the domain gateway (us)
R$*<@LOCAL> $@$>0$1 strip our name, retry
R<@LOCAL>:$+ $@$>0$1 retry after route strip
##################################
# End of ruleset zero preamble #
##################################
###############################################
### Machine dependent part of rulset zero ###
###############################################
# deliver to known SMTP hosts explicitly specified in our domain
R$+<@$*$=S.LOCAL> $#smtp$@$3$:$1@$2$3 user@smtphost.LOCAL
# resolve uucp domain and deliver
R$+<@$*$=S.UUCP> $#smtp$@$3$:$1@$2$3 user@smtphost.UUCP
# deliver to known uucp hosts
R<@$=U.UUCP>:$+ $#uucp$@$1$:$2 @host.UUCP:...
R$+<@$=U.UUCP> $#uucp$@$2$:$1 user@host.UUCP
R$+<@$=U>$* $#uucp$@$2$:$1 user@uucphost
# Pass Arpanet names up to the gateway
R$*<@$*$-.ARPA>$* $#smtp$@$R$:$1@$2$3.ARPA$4 user@anything.ARPA
# Pass Bitnet names up to the gateway
R$*<@$*$-.BITNET>$* $#smtp$@$R$:$1@$2$3.BITNET$4 user@anything.BITNET
# Pass all domain qualified names up to the gateway
# R$*<@$*$-.$->$* $#smtp$@$R$:$1@$2$3.$4$5 user@anything.anything
#
# no networked gateway so we uucp it!
#
# R$*<@$*$-.$->$* $#uucp$@$F$:$1@$2$3.$4$5 user@anything.anything
#
# patched to let the system work on it
#
R$*<@$*$-.$->$* $#uucp$@$F$:$1@$2$3 user@anything.anything
# Explicitly specified names in our domain -- that we've never heard of
R$*<@$*.LOCAL>$* $#error:Never heard of host $2 in domain $D
# All addresses in the rules ABOVE are absolute (fully qualified domains).
# (Note that all patterns end in a word, not a multi-matcher).
# Addresses below can be partially qualified.
# deliver to known SMTP hosts
R$*<@$*$=S>$* $#smtp$@$3$:$1@$2$3$4 user@smtphost
# kick other addresses upstairs
R$+<@$-> $#uucp$@$F$:$1@$2 user@host
# other non-local names have nowhere to go; return them to sender
R$*<@$+.$=T>$* $#error$:Unknown host $2
R$*<@$+.$->$* $#error$:Unknown domain $3
R$*<@$+>$* $#error$:Unknown host $2 -- please specify domain
# remaining names must be local
R$+ $#local$:$1 everything else
# special local conversions
S6
R$*<@$*$=D>$* $1<@$2LOCAL>$4 convert local domain
R$*<@$+.$=T.$=T>$* $1<@$2.$3>$5 mult toplevel domains
--
_ guardian@tons61 __ _ Harry Skelton - System Administrator!
_| |_ ___ __ ____ / / / | U.S. Department of Transportation
|_ _|/ . \| \|__--|| .`.| | Washington, D.C. - TONS Network Systems
|_| \___/|_|__|____||___||_| via: obdient, daitc, killer