Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!cis.ohio-state.edu!karl_kleinpaste From: karl_kleinpaste@cis.ohio-state.edu Newsgroups: comp.mail.sendmail Subject: Re: *Long* bang paths Message-ID: Date: 2 Jan 91 23:16:49 GMT References: Sender: news@tut.cis.ohio-state.edu Organization: OSU Lines: 20 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