My original problem:
  
> When an address of the form user%host1_at_host2 is sent to the 
> system, Sendmail produces the following error: 
>  
> Mail From:user%host1_at_host2 
> 554 rewrite: cannot prescan new hostname: host1<_at_host2.
> sps.mot.com 554 user%host1_at_host2... Unbalanced '<' 
> 554 rewrite: cannot prescan new hostname: host1<_at_host2.sps.mot.com 
>
  
Apparently this was an old problem that I have managed to avoid the fix for.  
Several mods to the sendmail.cf file were suggested.  The one that worked for 
me was to modify the rule 7 block in sendmail.cf as follows:
> --------
> ##### special local conversions (exit path from S3)
> S7
> # atp 1994 repeated use of %->_at_ in S3 (R$+%$+) on a name already
> #	   containing an _at_ (atp%mssly1.mssl.ucl.ac.uk_at_ucl.ac.uk)
> #	   causes a rewrite error in S9 
> #	   so has to be undone here (defocus back to one)
> R$*<_at_$+<_at_$+>>$*		$1%$2<_at_$3>$4			undo damage in S3
> R$*<_at_$+%$+>$*		$1%$2<_at_$3>$4			move _at_ right after %
> R$+<_at_POP>$*		$_at_$1<_at_POP>$2			POP already OK
> R$*<_at_$->$*		$_at_$1<_at_$2.$N>$3			qualify hostnames
> ----------
Then run
/sbin/init.d/sendmail restart
Problem fixed!
Thanks to the following folks for their quick replies:
Andy Phillips <atp_at_mssly1.mssl.ucl.ac.uk>
luchini_at_siberia.ups-tlse.fr (Marco Luchini)
I will use the WAIS search on the archive home page next time!
Regards,
Len
---
Len Hause
Motorola
Austin,TX
rdwt80_at_email.sps.mot.com
 
Received on Wed Jul 19 1995 - 16:23:28 NZST