Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83 SMI; site sun.uucp Path: utzoo!linus!decvax!decwrl!sun!gnu From: gnu@sun.uucp (John Gilmore) Newsgroups: net.mail Subject: Aliasing a hostname in sendmail (eg amd70->amd) Message-ID: <1542@sun.uucp> Date: Thu, 12-Jul-84 08:34:03 EDT Article-I.D.: sun.1542 Posted: Thu Jul 12 08:34:03 1984 Date-Received: Sat, 14-Jul-84 02:16:44 EDT References: <432@turtlevax.UUCP> Organization: Sun Microsystems, Inc. Lines: 27 To cause sendmail to alias one system name for another, you need to add rewriting rules to /usr/lib/sendmail.cf . If you actually want the modified address to appear in headers, hack a change into ruleset 8 or ruleset 3. If you just want to leave the headers alone but have uucp send it to 'amd', fix it in ruleset 0 as follows. Dup the line(s) that resolve to the uucp mailer and add in the hostname explicitly in both the left and right halves. You'll have to renumber the $1, $2, etc in the right half after replacing a $- in the left with 'amd70'. E.g. in our sendmail.cf, I'd change: # resolve UUCP domain R<@$-.uucp>:$+ $#uucp $@$1 $:$2 @host.uucp:... R$+<@$-.uucp> $#uucp $@$2 $:$1 user@host.uucp To: # Hackery to route uucp mail for amd70 to 'amd' R<@amd70.uucp>:$+ $#uucp $@amd $:$1 @host.uucp:... R$+<@amd70.uucp> $#uucp $@amd $:$1 user@host.uucp # resolve UUCP domain R<@$-.uucp>:$+ $#uucp $@$1 $:$2 @host.uucp:... R$+<@$-.uucp> $#uucp $@$2 $:$1 user@host.uucp More info is in the sendmail installation guide. Note the time this message was sent and please be charitable about typos and mindos...