Path: utzoo!attcan!uunet!snorkelwacker!apple!rutgers!pyrnj!bartal!monymsys!sonyd1.Broadcast.Sony.COM!bruce From: bruce@sonyd1.Broadcast.Sony.COM (Bruce Lilly) Newsgroups: comp.mail.sendmail Subject: Re: NOT routing thru DOMAIN.ORG? Message-ID: <1990Sep26.174917.15279@sonyd1.Broadcast.Sony.COM> Date: 26 Sep 90 17:49:17 GMT References: <333@esl.ESL.COM> Organization: Sony Communications Products Company, Teaneck, NJ Lines: 26 In article <333@esl.ESL.COM> jsd@bambam.UUCP (Jeff Dalton) writes: >Is there a straight forward way of ... >... sending mail addressed to nodename.DOMAIN.ORG directly >to nodename and not go thru unnecessary nodes like DOMAIN.ORG? Easy. Strip off DOMAIN.ORG ($D) early in ruleset 0 (where doing so won't affect the headers) and then recognize the locally accessible hosts and send via smtp (or whatever you're using) -- i.e. resolve in ruleset 0: R$*<@$=E>$* $#smtp$@$2$:$1$3 alternatively you could use: R$*<@$=E.$D>$* $#smtp$@$2$:$1$3 assuming class E has been defined to include all of the locally known hosts. e.g.: # skip comments, accept multiple entries/line; (space through tilde plus tab) FE/etc/hosts %[^#]%*[ -~ ] -- Bruce Lilly, Product Manager, | bruce@sonyd1.Broadcast.Sony.COM Digital Television Tape Recording, | uunet!{sonyusa,vmp}!sonyd1!bruce Sony Communications Products Co., | lilb@sony.compuserve.com (slow) Teaneck, NJ 07666 | Telephone: 1(201)833-5693 | FAX: 1(201)833-9279