shawn@lit.epfl.ch (Shawn Koppenhoefer) (06/20/91)
since I didn't get a solution by posting locally i am posting globally. I want a very very simple, dumb (perhaps retarded) sendmail.cf file that will take ALL mail sent from a machine ( say machine-STUPID ) and give it to a machine called machine-SMART. I want the mail that leaves machine-SMART to actually leave machine-SMART as if it was sent by someone who was logged into machine-SMART.... so, if you pretend that one machine is machine_STUPID.hereville.edu and the other is machine_SMART.hereville.edu and a user uses mail to send mail while on machine_STUPID, then the mail will really get sent to machine_SMART where it is RESENT so that the world thinks it is coming directly from user@machine_SMART.hereville.edu So, all the complicated sendmail stuff will be in the sendmail.cf file on machine_SMART, but what should be in the sendmail.cf for machine_STUPID? i'm thinking that something as short as the following should be all that is required! does anyone have any suggestions? # official host domain DDhereville.edu # hostname for this site Dwmachine_STUPID # ST-Mail relay DGmachine_SMART.hereville.edu ----------------------------------------------------------- Shawn E. Koppenhoefer shawn@litsun.epfl.ch EL-Ecublens, CH-1015 Lausanne SWITZERLAND +41 21 693 47 03 -- _____________________________________________________________________________ | shawn@litsun.epfl.ch -.- KLEIN BOTTLE FOR SALE ... \####### | Shawn Edwin Koppenhoefer \_/ ... enquire within \###### | Sun System-Manager, EPFL (Ecole Polytechnique Federale de Lausanne) \##### | EL-Ecublens, CH 1015 Lausanne SWITZERLAND (021)6934703 telefax=474660 \#### | from Canada dial: 011-41-21-693-4703 __________________________________|### |_____________________________________/
avolio@decuac.DEC.COM (Frederick M. Avolio) (06/22/91)
In article <SHAWN.91Jun20173035@lit.epfl.ch>, shawn@lit.epfl.ch (Shawn Koppenhoefer) writes: |>I want a very very simple, dumb (perhaps retarded) sendmail.cf file |>that will take ALL mail sent from a machine ( say machine-STUPID ) and |>give it to a machine called machine-SMART. I got this from a friend, Peter Churchyard, at Imperial College, London and modified it a bit: # sendmail.client.cf # this is experimental... Got this from a friend in England. Tough # stuff. This says "I know *noootttthhhhhhiiiinnnnnggggg* # Fred Avolio (avolio@dco.dec.com) 28Mar91 # Dj$w.zk3.dec.com DGmachine-SMART DVIC-CLIENT-2.0a Dnmailer-daemon DlFrom $g $d remote from $U Do@.% Dq$?x$x <$g>$|$g$. De$j Sendmail $v/$V ready at $b Odbackground Om OF0644 Og1 OH/usr/lib/sendmail.hf OL6 Oo OQ/usr/spool/mqueue Or2h OS/etc/sendmail.st OT3d Ou1 Ox8 OX12 #OW Pfirst-class=0 Pspecial-delivery=100 Pjunk=-100 Troot Tdaemon Tuucp H?F?From: $q H?D?Date: $a H?M?Message-Id: <$p.$t@$j> H?F?Resent-From: $q H?D?Resent-Date: $b H?M?Resent-Message-Id: <$p.$t@$j> HSubject: S0 R$* $#ether$@$G$:<$1> Give all to server. S1 S2 S3 S4 Mether, P=[IPC], F=nsmFDMuXC, S=10, R=10, A=IPC $h Mlocal, P=/bin/mail, F=lsDFrmn, S=10, R=10, A=mail -r $f -d $u Mprog, P=/bin/echo, F=lsDFMmn, S=10, R=10, A=mail $u S10
spike@coke.std.com (Joe Ilacqua) (06/28/91)
In article <SHAWN.91Jun20173035@lit.epfl.ch> shawn@lit.epfl.ch (Shawn Koppenhoefer) writes: <I want a very very simple, dumb (perhaps retarded) sendmail.cf file >that will take ALL mail sent from a machine ( say machine-STUPID ) and <give it to a machine called machine-SMART. I want the mail that leaves >machine-SMART to actually leave machine-SMART as if it was sent by <someone who was logged into machine-SMART.... This works nicely: ########################################################### # # SENDMAIL CONFIGURATION FILE FOR NFS CLIENTS. # # You should install this file as /etc/sendmail.cf # if want mail to appear to come from one central server # and not to be delivered localy. For ease of use, you # should then NFS mount the servers /usr/spool/mail on # the local /usr/spool/mail. # # All this cf does is change any reference to the local # hostname to the name of the server, and then send the # mail to the server. All other address parsing is handed # off to the server. # # I believe that this configuration functions correctly, however: # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. # # Written by Spike (spike@world.std.com). Also check out his cool # Server cf. # my official hostname Dj$w # major relay mailer DMTCP # This is the name of the major relay so we can change our name. # For example: #DHcs.bu.edu DH ################################################# # # General configuration information # local domain name # For example: #Dmstd.com Dm # Version number of configuration file DVSpike-2.0 ### Standard macros # name used for error messages DnMailer-Daemon # UNIX header format DlFrom $g $d # delimiter (operator) characters Do.:%@!^=/[] # format of a total name #Dq$g$?x ($x)$. # This tends to get the Fullname added correctly Dq<$g> # 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