Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!wiley!deneva!trwarcadia!simpson From: simpson@trwarcadia.sdd.trw.com (Scott Simpson) Newsgroups: comp.mail.sendmail Subject: Need Help With Getting Ruleset 1 to Fire Keywords: Sender Addresses, Sendmail, Ruleset 1 Message-ID: <26C85784.2FE@deneva.sdd.trw.com> Date: 14 Aug 90 19:56:52 GMT Sender: news@deneva.sdd.trw.com Reply-To: simpson@trwarcadia.sdd.trw.com (Scott Simpson) Distribution: usa Organization: TRW Arcadia Project, Redondo Beach, CA Lines: 36 SunOS 3.5, Sendmail version 3.2 (1.2 SCCS id) I want to hide our client machines behind our gateway machine and only advertise our gateway machine to the rest of the world so I added the following lines to our sendmail configuration file: # Gateway machine DS trwarcadia # Clients we want to hide behind the gateway machine CC minotaur aphrodite helicon poseidon bonodea and I changed ruleset 1 from nothing to S1 R$*<@$=C.$m>$* $1<@$S.$m>$3 to change all client names to the gateway machine name on the way out. When I run sendmail in test mode I get trwarcadia% sendmail -bt ADDRESS TEST MODE Enter
> 1 simpson@minotaur.sdd.trw.com rewrite: ruleset 3 input: "simpson" "@" "minotaur" "." "sdd" "." "trw" "." "com" rewrite: ruleset 6 input: "simpson" "<" "@" "minotaur" "." "sdd" "." "trw" "." "com" ">" rewrite: ruleset 6 returns: "simpson" "<" "@" "minotaur" "." "sdd" "." "trw" "." "com" ">" rewrite: ruleset 3 returns: "simpson" "<" "@" "minotaur" "." "sdd" "." "trw" "." "com" ">" rewrite: ruleset 1 input: "simpson" "<" "@" "minotaur" "." "sdd" "." "trw" "." "com" ">" rewrite: ruleset 1 returns: "simpson" "<" "@" "trwarcadia" "." "sdd" "." "trw" "." "com" ">" > trwarcadia% This didn't have any effect when I tried mailing a message from minotaur to the outside world. Can anybody tell me why ruleset 1 is not rewriting From: addresses correctly and how I can fix it?