[comp.mail.sendmail] *Long* bang paths

palkovic@linac.fnal.gov (John A. Palkovic) (01/03/91)

I'm running sendmail 5.65a/IDA-1.4.2. How do I truncate long bang
paths to the rightmost FQDN? Here is what I'm talking about (edited
slightly):

Dec 31 12:26:30 linac sendmail[25647]: AA25647: from=yclept!\
	att!drutx!druwa!user1, size=1496, class=0, received from local
Dec 31 12:26:33 linac sendmail[25649]: AA25647: to=pacific.mps.ohio-state.edu!\
	zaphod.mps.ohio-state.edu!usc!cs.utexas.edu!evax!utacfd!merch!\
	cpe!hal6000!trsvax!user2, delay=00:00:05, stat=Sent

There are at least 6 internet computers in these two log entries.

-- 
palkovic@linac.fnal.gov
"A Superconductor generates electricity without resistance when cooled." 
- Chicago Tribune, Oct. 21, 1990, A-18 

karl_kleinpaste@cis.ohio-state.edu (01/03/91)

palkovic@linac.fnal.gov writes:
   I'm running sendmail 5.65a/IDA-1.4.2. How do I truncate long bang
   paths to the rightmost FQDN?

   Dec 31 12:26:33 linac sendmail[25649]: AA25647: to=pacific.mps.ohio-state.edu!\
	   zaphod.mps.ohio-state.edu!usc!cs.utexas.edu!evax!utacfd!merch!\
	   cpe!hal6000!trsvax!user2, delay=00:00:05, stat=Sent

So you _like_ being flamed for Rabid Rerouting?  :-)

The following will do what you want.  I put it in S3.

# Strip many-hop !-paths to the right-most FQDN; DARR.
#
R$*.$*!$*@$*		$1.$2!$3		lose @-portion
R$*!$*.$*!$*		$2.$3!$4		strip excess left-hand
R$*.$*!$*		$3@$1.$2		invert to @-format


--karl

emv@ox.com (Ed Vielmetti) (01/03/91)

In article <L1P2F_@linac.fnal.gov> palkovic@linac.fnal.gov (John A. Palkovic) writes:

   I'm running sendmail 5.65a/IDA-1.4.2. How do I truncate long bang
   paths to the rightmost FQDN? Here is what I'm talking about (edited
   slightly):

   Dec 31 12:26:30 linac sendmail[25647]: AA25647: from=yclept!\
	   att!drutx!druwa!user1, size=1496, class=0, received from local
   Dec 31 12:26:33 linac sendmail[25649]: AA25647: to=pacific.mps.ohio-state.edu!\
	   zaphod.mps.ohio-state.edu!usc!cs.utexas.edu!evax!utacfd!merch!\
	   cpe!hal6000!trsvax!user2, delay=00:00:05, stat=Sent

Looks like another case of someone inside AT&T (at druwa.att.com)
using Paleolithic[%] news software that uses the Path: header to
construct followups.  You are completely justified to do whatever
torture to this header that is necessary to get it wherever it goes
next.

--Ed
emv@ox.com

[%] Apologies to any Paleoliths.

palkovic@linac.fnal.gov (John A. Palkovic) (01/03/91)

In article <KARL.91Jan2181649@giza.cis.ohio-state.edu>
	karl_kleinpaste@cis.ohio-state.edu writes:
>So you _like_ being flamed for Rabid Rerouting?  :-)

I prefer to call it "Delivery Optimization." :-) 

>The following will do what you want.  I put it in S3.
>
># Strip many-hop !-paths to the right-most FQDN; DARR.
>#
>R$*.$*!$*@$*		$1.$2!$3		lose @-portion
>R$*!$*.$*!$*		$2.$3!$4		strip excess left-hand
>R$*.$*!$*		$3@$1.$2		invert to @-format

So did I. It failed coming out of the starting gate:

linac% sendmail -bt -Ctest.cf
test.cf: line 692: invalid rewrite line "R*.*!*@*            1.2!3
  lose @-portion"
test.cf: line 693: invalid rewrite line "R*!*.*!*            2.3!4
  strip excess left-hand"
test.cf: line 694: invalid rewrite line "R*.*!*               3@1.2
   invert to @-format"
ADDRESS TEST MODE
Enter <ruleset> <address>
[Note: No initial ruleset 3 call]
> 						/* :-( */

Looking in the log file shows a "NOQUEUE: SYSERR:" associated with
each "invalid rewrite" line.

For reference this is sendmail 5.65a/IDA-1.4.2.

-- 
palkovic@linac.fnal.gov
"A Superconductor generates electricity without resistance when cooled." 
- Chicago Tribune, Oct. 21, 1990, A-18 

palkovic@linac.fnal.gov (John A. Palkovic) (01/03/91)

>>>>> On 3 Jan 91 03:47:27 GMT, fletcher@cs.utexas.edu (Fletcher Mattox) said:
>[deleted]
>	zaphod.mps.ohio-state.edu!usc!cs.utexas.edu!evax!utacfd!merch!\
>	cpe!hal6000!trsvax!user2, delay=00:00:05, stat=Sent

|> If you short circuit this particular bang path to the rightmost FQDN,
|> please be aware the effort is doomed.  Cs.utexas.edu has no UUCP peer
|> named "evax", nor do I see such a host in the UUCP maps.  So it will 
|> fail here with "unknown host".

It did. It came back to linac in less than a minute. Thanks to "Rabid
Rerouting" at osu. I knew that when I posted.

Utacfd is utacfd.arl.utexas.edu on the inet. I have that in my
pathtable. What I'd *really* like to do is teach sendmail to truncate
to that point. Then everyone[*] is happy.

|> News is not mail.

Tell that to root@druwa.att.com.


[*] Except anti re-routing zealots.

-- 
palkovic@linac.fnal.gov
"A Superconductor generates electricity without resistance when cooled." 
- Chicago Tribune, Oct. 21, 1990, A-18 

palkovic@linac.fnal.gov (John A. Palkovic) (01/03/91)

>>>>> On 3 Jan 91 04:25:40 GMT, karl_kleinpaste@cis.ohio-state.edu said:

karl> At a guess, and only that, did you perchance cut-and-paste my .cf
karl> lines into your own, probably from an xterm where tabs displayed as
karl> spaces were getting pasted in as just spaces?  If you don't have tabs
karl> separating "R$*.$*!$*@$*" from "$1.$2!$3," sendmail will likely get
karl> quite upset, possibly like this.

Good guess. It was telnet on a mac, but the tabs became spaces just
the same. Appears to be working now. Thanks, Karl. My apologies.

Rabidly,

			John Palkovic


-- 
palkovic@linac.fnal.gov
"A Superconductor generates electricity without resistance when cooled." 
- Chicago Tribune, Oct. 21, 1990, A-18 

fletcher@cs.utexas.edu (Fletcher Mattox) (01/03/91)

John Palkovic writes:

>Dec 31 12:26:33 linac sendmail[25649]: AA25647: to=pacific.mps.ohio-state.edu!\
>	zaphod.mps.ohio-state.edu!usc!cs.utexas.edu!evax!utacfd!merch!\
>	cpe!hal6000!trsvax!user2, delay=00:00:05, stat=Sent
>

If you short circuit this particular bang path to the rightmost FQDN,
please be aware the effort is doomed.  Cs.utexas.edu has no UUCP peer
named "evax", nor do I see such a host in the UUCP maps.  So it will 
fail here with "unknown host".

News is not mail.

karl_kleinpaste@cis.ohio-state.edu (01/03/91)

fletcher@cs.utexas.edu writes:
   If you short circuit this particular bang path to the rightmost FQDN,
   please be aware the effort is doomed.  Cs.utexas.edu has no UUCP peer
   named "evax", nor do I see such a host in the UUCP maps.  So it will 
   fail here with "unknown host".

Well, then it'll fail with "unknown host" whether it's short-circuited
or not, yes?  It's just a matter of how many hosts will be bothered
with it on the way toward a certain death anyway.

karl_kleinpaste@cis.ohio-state.edu (01/03/91)

palkovic@linac.fnal.gov writes:
   So did I. It failed coming out of the starting gate:

   linac% sendmail -bt -Ctest.cf
   test.cf: line 692: invalid rewrite line "R*.*!*@*            1.2!3
     lose @-portion"

Duh..."it works for me."

At a guess, and only that, did you perchance cut-and-paste my .cf
lines into your own, probably from an xterm where tabs displayed as
spaces were getting pasted in as just spaces?  If you don't have tabs
separating "R$*.$*!$*@$*" from "$1.$2!$3," sendmail will likely get
quite upset, possibly like this.

fletcher@cs.utexas.edu (Fletcher Mattox) (01/04/91)

John Palkovic writes:

>Utacfd is utacfd.arl.utexas.edu on the inet. I have that in my
>pathtable. What I'd *really* like to do is teach sendmail to truncate
>to that point.

Did you see Erik Fair's pathalias postprocessor posted recently?
It maps utacfd to utacfd.arl.utexas.edu, which is the first step
in teaching sendmail this trick.  It's not clear how much more
work would be needed.

Personally, I'd rather not reroute at all.  Seems to create more
problems than it solves.