[comp.mail.sendmail] uucp rewrite question

hubert@ms.washington.edu (Steve Hubert) (05/11/89)

Suppose host orig.domain is on the internet but has no uucp connections.  Host
uucp-relay.domain is an internet/uucp relay host.  Ether is the name of the
mailer that can deliver directly to other internet sites.  What do you think
ruleset 0 should resolve to for the address a!b!c!user?  Here are
some possible choices (I am soliciting opinions, not looking for the
one true answer.):

   $#ether  $@uucp-relay.domain  $:a!b!c!user
   $#ether  $@uucp-relay.domain  $:a!b!c!user@uucp-relay.domain
   $#ether  $@uucp-relay.domain  $:a!b!c!user<@uucp-relay.domain>
   $#ether  $@uucp-relay.domain  $:b!c!user%a.UUCP@uucp-relay.domain
   $#ether  $@uucp-relay.domain  $:user%c.UUCP%b.UUCP@a.UUCP
   $#ether  $@uucp-relay.domain  $:user%c.UUCP%b.UUCP%a.UUCP@uucp-relay.domain

   and so on.  I initially was leaning towards never having !'s and @'s in
   the same address but that can get pretty messy.  I am now leaning
   toward choice 1 or choice 2.  What do you think?

   A closely related question is this.  Suppose this mail was sent to
   user1@host.domain and a!b!c!user.  What should the headers look like
   in the mail that user1 receives?  

   To: user1@host.domain, a!b!c!user
   From: me@orig.domain

or To: user1@host.domain, a!b!c!user@uucp-relay.domain

   and so on.  Thanks for your opinions.

Steve Hubert
Networks and Distributed Computing, Univ. of Washington
hubert@cac.washington.edu

barnett@crdgw1.crd.ge.com (Bruce G. Barnett) (05/16/89)

In article <1424@uw-entropy.ms.washington.edu>, hubert@ms (Steve Hubert) writes:
>   $#ether  $@uucp-relay.domain  $:a!b!c!user
>   $#ether  $@uucp-relay.domain  $:a!b!c!user@uucp-relay.domain
>   $#ether  $@uucp-relay.domain  $:a!b!c!user<@uucp-relay.domain>
>   $#ether  $@uucp-relay.domain  $:b!c!user%a.UUCP@uucp-relay.domain
>   $#ether  $@uucp-relay.domain  $:user%c.UUCP%b.UUCP@a.UUCP
>   $#ether  $@uucp-relay.domain  $:user%c.UUCP%b.UUCP%a.UUCP@uucp-relay.domain

Well, the problem is that you don't know what the RELATIVE  address a!b!c!user
should be started with. Let's say that machine "a" is connected to uunet.
Then I would say the proper address is
	a!b!c!user<@uunet.uu.net>

[You should leave the <@ host> in the address determined by ruleset 0
because the mailer rulesets or ruleset 4 will remove the "<" and ">".]

But the problem is, you don't know which internet machine is "closest"
to machine a. Therefore the address a!b!c!user@uucp-relay.domain
might not be right. Now the machine uucp-relay may re-write
the address if it has the path-alias database. Or it may not.
As an example, a!b!c!user@sun.com only works if machine "a" is directly
connected to sun.com.


IMHO, I would suggest
   $#ether  $@uucp-relay.domain  $:b!c!user<@a.UUCP>
provided that the relay has a direct connection to machine a, or
it have the pathalias database and will re-route to machine a.

In either case, I suggest you talk to the administrator ot the relay machine
and ask for their advice. There are no hard rules, and some sites
may have a preference.

--
Bruce G. Barnett	<barnett@crdgw1.ge.com>  a.k.a. <barnett@[192.35.44.4]>
			uunet!crdgw1.ge.com!barnett barnett@crdgw1.UUCP