Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!dali.cs.montana.edu!uakari.primate.wisc.edu!caen!spool.mu.edu!uunet!world!spike From: spike@coke.std.com (Joe Ilacqua) Newsgroups: comp.mail.sendmail Subject: Re: creating a "dumb" sendmail.cf file Message-ID: Date: 27 Jun 91 23:21:10 GMT References: Sender: usenet@world.std.com (NNTP News Poster) Organization: Software Tool & Die Lines: 195 In-Reply-To: shawn@lit.epfl.ch's message of 20 Jun 91 15: 30:35 GMT Nntp-Posting-Host: coke.std.com In article shawn@lit.epfl.ch (Shawn Koppenhoefer) writes: that will take ALL mail sent from a machine ( say machine-STUPID ) and machine-SMART to actually leave machine-SMART as if it was sent by # SMTP login message De$j Sendmail $v/$V ready at $b ### Options # location of alias file OA/etc/aliases # default delivery mode (deliver in background) Odbackground # rebuild the alias file automagically OD # 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 # Cc my postmaster on error replies I generate OPPostmaster # queue directory OQ/tmp # read timeout for SMTP protocols Or15m # status file -- none OS/etc/sendmail.st # queue up everything before starting transmission, for safety Os # return queued mail after this long OT3d # default UID Ou1 ### Message precedences Pfirst-class=0 Pspecial-delivery=100 Pjunk=-100 ### Trusted users T root daemon uucp ### 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 H?x?Full-Name: $x HSubject: H?M?Resent-Message-Id: <$t.$i@$j> H?M?Message-Id: <$t.$i@$j> HErrors-To: ########################### ### Rewriting rules ### ########################### # Sender Field Pre-rewriting S1 # None needed. # Recipient Field Pre-rewriting S2 # None needed. # Name Canonicalization # The magic to change the mail to make it look like it comes from the sever # machine. If the address contains no hostname or our hostname, we change it # to be the server hostname. $H is the name of the server machine... S3 R$*<$+>$* $2 basic RFC822 parsing R$- $@$1@$H user -> user@$H R$+@$+ $:$1@$[$2$] find real name (!CNAME) R$+@$=w $@$1@$H user@local -> user@$H R$+@$=w.$m $@$1@$H user@local.domain-> user@$H R$=w!$+ $@$2@$H local!user -> user@$H R$=w.$m!$+ $@$2@$H local.domain!user-> user@$H R@$=w:$+ $@@$H:$2 @local:something R@$=w.$m:$+ $@@$H:$2$3 @local.domain:something R$+%$=w $@$>3$1@$2 user%local R$+%$=w.$m $@$>3$1@$2 user%local.domain # We never deliver mail locally, so these are unused. How ever sendmail gets # unhappy if we don't have them... S4 # None needed Mlocal, P=/bin/mail, F=rlsDFMmnP, S=10, R=20, A=mail -d $u Mprog, P=/bin/sh, F=lsDFMeuP, S=10, R=20, A=sh -c $u S10 # None needed. S20 # None needed. ############################################################ ##### ##### Ethernet Mailer specification ##### ##### Messages processed by this configuration are assumed to remain ##### in the same domain. This really has nothing particular to do ##### with Ethernet - the name is historical. MTCP, P=[IPC], F=msDFMuCX, S=11, R=21, A=IPC $h S11 # None needed. S21 # None needed. ##### RULESET ZERO PREAMBLE S0 # On entry, the address has been canonicalized and focused by ruleset 3. # Punt to mail server R$+ $#$M $@$H $:$1