wathu@ivax.ccit.arizona.edu (06/04/91)
Sendmail.cf for Sun Sparc 2 =========================== I am trying to setup mail for my new Sun Sparcstation 2. I am running NIS to obtain domain name services. I am also running OpenWindows 2. I am connected to the campus ethernet backbone. I tried to modifiy sun supplied sendmail.main.cf and also sendmail files from Brian Kennedy (Sun Sparc 1+ no DNS, no NIS) and Viji M. (Sun 3, no DNS, no NIS). All of them gave me the same problem. The mail received at the remote computer had 'From wathu@lanka' not wathu@lanka.ccit.arizona.edu as expected. I am enclosing a sample header here From wathu@lanka Wed May 29 15:14:49 1991 Received: from lanka.ccit.arizona.edu by convx1.ccit.arizona.edu with SMTP; Wed, 29 May 91 15:14:49 -0700 From: wathu@lanka (Wije Wathugala) Return-Path: <wathu@lanka> Received: by lanka.ccit.arizona.edu; Wed, 29 May 91 15:14:20 MST Date: Wed, 29 May 91 15:14:20 MST Message-Id: <9105292214.AA00814@lanka.ccit.arizona.edu> Apparently-To: wathu@convx1.ccit.arizona.edu Status: RO test Could some one tell me how to fix this error. (I could fix this for external mail by replacing $q by $q.$m in the H?F?From: $q line. However this will mess local mail) Thank you Wije Sendmail.cf used to get this file --------------------------------- # sendmail.cf : unix1 # # this is a good file to use if the host does all of its mail # through smtp, and does not run uucp. ############################################################ ### local info ############################################################ # Official hostname Dj$w.$m # Nicknames for local host CWlanka Dmccit.arizona.edu # Domains in which we claim to be DJccit.arizona.edu CJccit.arizona.edu # top level domain for local mail DKarizona.edu # domains within top level, also local CKccit ma ame lpl noao # Gateway #1 DXarizona.edu CXARPA CSNET DEC OZ GOV EDU MIL ORG COM US UK NET # Gateway #2 DYarizona.edu CYBTL ATT ATT.UUCP # Gateway #3 (which we forward to after checking for more local stuff) #DZarizona.edu DZarizrvax.ccit.arizona.edu CZBITNET UUCP # Last resort DFarizona.edu # DECnet Gateway DDarizona.edu FD/var/spool/mail/decnet # BITNET Gatway DBarizona.edu FB/var/spool/mail/bitnet # Ethernet Gatway DS$w FS/var/spool/mail/smtp # Local domain Gateway DLlanka FL/var/spool/mail/local # uucp neighbors (here we don't have any) #FU/usr/lib/uucp/L.sys %s %*[^\n] #FU/usr/lib/mail/uucp %s %*[^\n] # uucp pathserver program #DP/usr/lib/mail/uupath # from path logger program #DQ/usr/lib/mail/pathlogger # my name DnMAILER-DAEMON # we have full sendmail support here Oa # default delivery mode--background # queing it only caused uucp to mess up Odbackground ############################################################ # # 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. # # @(#)base.m4 4.3 8/30/83 # ############################################################ # @(#)version.m4 4.7 8/31/83 DV05-Mar-87-simple-(smtp) ########################## ### Special macros ### ########################## # UNIX header format DlFrom $g $d remote from $w #DlFrom $f $d remote from $w -- original kurt version # delimiter (operator) characters Do.:%@!^=/[] # format of a total name Dq$g$?x ($x)$. # SMTP login message De$j Sendmail $v/$V ready at $b ################### ### Options ### ################### # location of alias file OA/etc/aliases # (don't) connect to "expensive" mailers #Oc # temporary file mode OF0600 # default GID Og1 # location of help file OH/usr/lib/sendmail.hf # log level OL9 # default messages to old style Oo # mail back error messages Oem # 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 # time zone names (V6 only) #OtCST,CDT # default UID Ou1 # wizard's password #OWa/FjIfuGKXyc2 ############################### ### Message precedences ### ############################### Pfirst-class=0 Pspecial-delivery=100 Pjunk=-100 ######################### ### Trusted users ### ######################### Troot Tdaemon Tuucp Tnetwork Tviji ############################# ### Format of headers ### ############################# original lines H?P?Return-Path: <$g> HReceived: $?sfrom $s $.by $j$?r with $r$.; $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> #add hoc modifications #H?P?Return-Path: <$g.$m> #HReceived: $?sfrom $s $.by $j$?r with $r$.; $b #H?D?Resent-Date: $a #H?D?Date: $a #H?F?Resent-From: $q.$m #H?F?From: $q.$m #H?x?Full-Name: $x #HSubject: #H?M?Resent-Message-Id: <$t.$i@$j> #H?M?Message-Id: <$t.$i@$j> ########################### ### Rewriting rules ### ########################### ################################ # Sender Field Pre-rewriting # ################################ S1 # # get rid of local host # R$+!$+<@$+.UUCP>$* $3!$1!$2 back to bang format #R$+!$+ $:$<Q$1!$2 log this path ################################### # Recipient Field Pre-rewriting # ################################### S2 R$*<$*>$* $1$2$3 defocus ################################# # Final Output Post-rewriting # ################################# S4 R@ $@$n handle <> error addr R$*<$+>$* $1$2$3 defocus R$*<@$*LDOMAIN>$* $1@$2$J$3 ################################################ # domain!user --> user@domain transform # ################################################ S9 #R$+!$+<@$+>$* $1!$2 #R$+!$+!$+ $2!$3 #R$-!$+ $@$2<@$1.UUCP> #R$+!$+ $@$2<@$1> ################################################### # strip local domains--for local domain delivery # ################################################### S8 #R$+<@$=S.UUCP>$* $1<@$2> #R$+<@$=L.UUCP>$* $1<@$2> #R$+<@$+.DECNET>$* $1<@$2> DECNET is local domain #R$+<@$=B.BITNET>$* $1<@$2> ########################### # Name Canonicalization # ########################### S3 # handle "from:<>" special case R<> $@@ turn into magic token # try to be optimal with local names R$- $@$1 # Basic canonicalization R$+<@$+> $@$1<@$2> R$*<$+>$* $2 # more miscellaneous cleanup R$+@$+ $:$1<@$2> focus on domain R$+<$+@$+> $1$2<@$3> move gaze right R$*<@$*> $@$1<@$2> already focussed # convert old-style addresses to domain-based addresses R$-::$+ $@$2<@$1> DECNET mail R$-^$+ $1!$2 convert ^ to ! R$-!$+ $@$2<@$1.UUCP> uucphost!user R$-=$+ $@$2<@$1.BITNET> bitnethost=user R$-.$+!$+ $@$3<@$1.$2> host.domain!user R$-:$+ $@$>3$2@$1 host:user ####################### # Rewriting rules # ####################### ##### special local conversions # # !'s to ::'s # S6 R$+!$+ $1::$2 # # ::'s to !'s # S7 R$+::$+ $1!$2 ########################################################## # General code to convert back to old style UUCP names # ########################################################## S5 R$*<$*>$* $1$2$3 Defocus strange stuff R$+<@$+.UUCP>$* $2!$1 ############################################################ ############################################################ ##### ##### RULESET ZERO ##### ##### ############################################################ ############################################################ # Ruleset 29 just calls rulesets 3 then 0. S29 R$* $: $>3 $1 First canonicalize R$* $@ $>0 $1 Then rerun ruleset 0 S0 # On entry, the address has been canonicalized and focused by ruleset 3. # Handle special cases..... R@ $#local $:$n handle <> form # # Fully qualified names # # mail addressed to unix1 converted to local # changed Dec 7 VM R$*<@unix1.ccit.arizona.edu>$* $>3$1 R$*<@unix1.ccit>$* $>3$1 R$*<@unix1>$* $>3$1 # mail addressed to this host R$+<@$=W>$* $>3$1 R$+<@$=W.$J>$* $>3$1 R$+<@$=W>$* $>3$1 # Just be optimal here R$- $#local $:$1 handle <> form # # We don't know how to forward this domain, so check to see if host is local # R$*<@$+.$J>$* $#smtp $@$2.$J $:$1@$2.$J R$*<@$+.$=K.$K>$* $#smtp $@$2.$3.$K $:$1@$2.$3.$K R$*<@$=D$*>$* $#smtp $@$D $:$1@$2.DECNET R$*<@$=B$*>$* $#bitnet $@$B $:$1@$2.BITNET # # User specified domains we know how to forward # R$*<@$+.$=X>$* $#smtp $@$X $:$1@$2.$3$4 R$*<@$+.$=Y>$* $#smtp $@$Y $:$1@$2.$3$4 # # We don't know about this host, so check to see if domain is local # R$*<@$+.DECNET>$* $#smtp $@$D $:$1@$2.DECNET R$*<@$+.BITNET>$* $#bitnet $@$B $:$1@$2.BITNET R$*<@$+.$=Z$*>$* $#smtp $@$Z $:$1@$2.$3$4$5 # # Domain is unknown--assume UUCP maps can find it # Push through path server--losing any idea of the domain # #R$+<@$-$*>$* $<P$1@$2 pathserver (not on 4.3) # # Check them all again--path server should come out with !'s # #R$=S!$+ $#smtp $@$1 $:$2@$1 #R$=D!$+ $#smtp $@$D $:$>6$2@$1.DECNET #R$=B!$+ $#bitnet $@$D $:$2@$1.BITNET #R$=U!$+ $#uucp $@$1 $:$2 # Local names with % are really not local! R$+%$+ $@$>29$1@$2 turn % => @, retry # # Domain is unknown # # # Last resort forwarding # R$*<@$+>$* $#smtp $@$F $:$1@$2 # R$*@$+.$-$* $#error $:Unknown domain $3 # R$*@$+$* $#error $:Host $2 unknown: please specify domain # R$-!$* $#error $:$j not connected to $1 # everything else is a local name R$+ $#local $:$1 local names # S14 #R$+<@$-$*>$* $<P$1@$2 pathserver ############################################################ ############################################################ ##### ##### Local and Program Mailer specification ##### ##### @(#)localm.m4 4.1 7/25/83 ##### ############################################################ ############################################################ Mlocal, P=/bin/mail, F=rnlsmFDMx, S=10, R=20, A=mail -d $u Mprog, P=/bin/sh, F=lsFDMe, S=10, R=20, A=sh -c $u # # Convert all from: and to: addresses to user@host.domain format # replies will work better this way--i.e. without !'s they won't # get routed back to originating host # S10 R@ $n errors to mailer-daemon R$=W!$+ $:$w!$2 use correct name #R$*!$* $>9$1!$2 get rid of !'s R$+<@$+>$* $@$>8$1<@$2> get rid of local domains R$-@$=W $:$1 get rid of local name S20 R$=W!$+ $:$w!$2 use correct name #R$*!$* $>9$1!$2 get rid of !'s R$+<@$+>$* $@$>8$1<@$2> get rid of local domains R$-@$=W $:$1 get rid of local name ############################################################ ############################################################ ##### ##### Ethernet Mailer specification ##### ##### @(#)etherm.m4 4.1 7/25/83 ##### ############################################################ ############################################################ Msmtp, P=[IPC], F=smFDMxPueXC, S=11, R=21, A=IPC $h, M=600000 Mbitnet,P=[IPC], F=mFDMxPueXIC, S=11, R=21, A=IPC $h, M=500000 # # Convert all from: and to: addresses to user@host.domain format # replies will work better this way--i.e. without !'s they won't # get routed back to originating host # # Note that we do this as a service for other SMTP hosts only # because they are all local--if we ever call non-local hosts # with smtp then we should either use a different mailer with # different (minimal) rewriting, or have all the local hosts # do their own rewriting in ruleset 10. # S11 R$=W!$+ $:$w!$2 use correct name #R$*!$* $>9$1!$2 get rid of !'s R$+<@$+>$* $@$>8$1<@$2> already ok R$+ $@$1<@$w> tack on our hostname S21 R$=W!$+ $:$w!$2 use correct name #R$*!$* $>9$1!$2 get rid of !'s R$+<@$+>$* $@$>8$1<@$2> already ok Mdecnet,P=[IPC], F=mFDMxPueXIC, S=12, R=22, A=IPC $h, M=250000 # # try to form DECnet route address. Upon return thorugh here it will # be converted back # # Put all from and to addresses in form of host.domain::user, so when # placed on decnet it will be of form dechost::...::host.domain::user. # This takes out all intervening hosts, so the gateway will have to # reroute it when it gets back to it. # # S12 R$=W!$+ $:$w!$2 use correct name #R$*!$* $>9$1!$2 get rid of !'s R$*!$* $1::$2 R$+<@$+>$* $:$>8$1<@$2> already ok R$+<@$+>$* $2::$1 R$=W::$=W::$+ $w::$+ R$=W::$+ $@$w::$2 already ok R$+ $@$w::$1 S22 R$=W!$+ $:$w!$2 use correct name #R$*!$* $>9$1!$2 get rid of !'s R$*!$* $1::$2 R$+<@$+>$* $:$>8$1<@$2> already ok R$+<@$+>$* $2::$1 # set default mail grade DGD Muucp, P=/usr/bin/uux, F=sFDMxuh, S=13, R=23, M=110000, A=uux - -r -z -a$f -g$G $h!rmail ($u) Mrelay, P=/usr/bin/uux, F=sFDMxuh, S=13, R=23, M=110000, A=uux - -r -z -a$f -g$G $h!rmail ($u) # # Convert (From:) field # # 1. from uucp # put mail back the way we found it # 2. from smtp # change @ to ! addressing # 3. from decnet # change :: to ! addressing # slap on hostname # S13 R$- $@ $w!$1 username--stick on host R$+::$+ $1!$2 ::'s into !'s R$+<@$+.UUCP$*>$* $@ $2!$1 S3 probably put it in this form R$*<@$=D$*>$* $2!$1 Is it a local host? R$*<@$=B$*>$* $2!$1 Is it a local host? R$*<@$=S$*>$* $2!$1 Is it a local host? R$*<@$=L$*>$* $2!$1 Is it a local host? R$+!$+ $:$w!$1!$2 ! format--slap on local host R$=W!$=W!$* $w!$3 get rid of duplicates R$=W!$* $@ $w!$2 make sure it is proper name # Convert (To:, Cc:) fields S23 R$+::$+ $1!$2 ::'s into !'s R$+<@$+.UUCP$*>$* $@ $2!$1 S3 probably put it in this form R$*<@$=D$*>$* $2!$1 Is it a local host? R$*<@$=B$*>$* $2!$1 Is it a local host? R$*<@$=S$*>$* $2!$1 Is it a local host? R$*<@$=L$*>$* $2!$1 Is it a local host?
wathu@ivax.ccit.arizona.edu (06/07/91)
In article <1991Jun4.082555.1@ivax.ccit.arizona.edu>, wathu@ivax.ccit.arizona.edu writes: > Sendmail.cf for Sun Sparc 2 > =========================== > > I am trying to setup mail for my new Sun Sparcstation 2. > I am running NIS to obtain domain name services. I am also > running OpenWindows 2. I am connected to the campus ethernet backbone. > > I tried to modifiy sun supplied sendmail.main.cf and also sendmail files > from Brian Kennedy (Sun Sparc 1+ no DNS, no NIS) and > Viji M. (Sun 3, no DNS, no NIS). All of them gave me the same problem. > The mail received at the remote computer had > 'From wathu@lanka' not wathu@lanka.ccit.arizona.edu as expected. > I found the answer in a reply by Neil .. to someone elses question. In my host table I had 128.196.120.201 lanka lanka.ccit.arizona.edu I changed it to 128.196.120.201 lanka.ccit.arizona.edu lanka it worked fine now. Wije Wathugala