markm@bit.UUCP (Mark Morrissey) (08/29/90)
Hello, We are a UUCP-only site which uses the Oregon Graduate Institute as our domain forwarder (ogicse for us, cse.ogi.edu for the Internet community). Most of our uucp connections are to our customer base. As proprietary information travels these paths, we are quite anxious to ensure that traffic destined to a customer to whom we have a uucp connection only occurs via that link. In order to intercept domain-style addresses which correspond to those customers for whom uucp is a better mailing route, I have used the following kludge: 1. Define several relay hosts: DR ogicse <- our default forwarder CR ogicse DS sun <- our uucp name for sun.com CS sun DY mips <- our uucp name for mips.com CY mips ... 2. Define rather explicit rewriting rules to intercept two forms of email: user@customer.com and user@machine.customer.com (while these don't work for all possible manifestations, they work for all the ones which we use here -- I think :) R$*<@sun.com>$* $#$M $@$S $:$1 user@sun.com R$*<@$*.sun.com>$* $#$M $@$S $:$2.sun.com!$1 user@sun.com R$*<@mips.com>$* $#$M $@$Y $:$1 user@mips.com R$*<@$*.mips.com>$* $#$M $@$Y $:$2.mips.com!$1 user@mips.com ... R$*<@$*.$+>$* $#$M $@$R $:$1<@$2.$3>$4 user@any.domain I know that there MUST be a much better way of doing this type of rewrite. (it takes user@mips.com and sends it to host "mips" for delivery to user "user" via uucp.) Not only is this extremely inefficient, but I will soon run out of letters of the alphabet to support this scheme. Can some kind souls comment (or better yet email to me) about better ways to do this sort of thing?? My current sendmail.cf is hacked from the Sun distribution, but I have been trying to get acceptible results from the M4 macros from the sendmail 5.61 release. thanks in advance, --mark +--------------------------------+-----------------------+-------------------+ | Mark Morrissey | ...bit!markm | Saving the world | | Unix Systems Administrator | bit!markm@cse.ogi.edu | from the evils of | | Bipolar Integrated Technology | (503) 629-5490 | unacceptably slow | | Beaverton, OR 97006 | | microprocessors. | +--------------------------------+-----------------------+-------------------+