Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: Notesfiles $Revision: 1.7.0.8 $; site uiucdcsb Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!ihnp4!inuxc!pur-ee!uiucdcsb!essick From: essick@uiucdcsb.Uiuc.ARPA Newsgroups: net.mail Subject: a common sendmail.cf bug Message-ID: <9600010@uiucdcsb> Date: Thu, 5-Sep-85 18:36:00 EDT Article-I.D.: uiucdcsb.9600010 Posted: Thu Sep 5 18:36:00 1985 Date-Received: Sat, 7-Sep-85 13:47:50 EDT Lines: 27 Nf-ID: #N:uiucdcsb:9600010:000:833 Nf-From: uiucdcsb.Uiuc.ARPA!essick Sep 5 17:36:00 1985 Here's a bug that is probably in most people's sendmail.cf. It involves turning user%host into user@host. The stock berkeley ruleset 3 has the line: R$+%$+ $@$>6$1<@$2> user%host Which works fine for "user%host" but doesn't work so well when the address is something like "user%host%host2". It hands back "user@host%host2" instead of "user%host@host2". I prefer to use the following 3 rules to handle the multiple-% case. R$+%$+ $:$1<@$2> user%host R$+<@$+%$+> $1%$2<@$3> fix user%host%host2 R$+<@$+> $@$>6$1<@$2> get outta here A quick way to find out if your configuration does this correctly is to try: % /usr/lib/sendmail -bt > 0 user%this%that%other and see what that gives you when ruleset 3 returns. -- Ray Essick, University of Illinois -- essick@uiuc.arpa, {ihnp4, convex, philabs}!uiucdcs!essick