[comp.mail.uucp] Making smail

scott@nbc1.ge.com (Scott Barman) (12/05/90)

We are a uucp-only site running (Sun's latest) sendmail and smail (2.5).
Our domain registration is via our parent company GE and they forward
mail with the internet addresses to us.  This is fine, this is what we
want.

However, because the system we pass mail with is on the Internet, I
would like our Internet addresses sent directly to them.  For example,
our pathalias database gives the following root for user@sun.com:

	philabs!linus!sunne!sun!user

While this works, if it was re-writen to crdgw1!sun.com!user (crdgw1 is
a GE site and cheaper for us to call regularly for mail), life would
probably be a lot better for many of us.

How do I get smail and/or pathalias do this?  Or do I make a change in
my sendmail.cf?

All info is appreciated!!!

-- 
scott barman				NBC Computer Imaging
scott@nbc1.ge.com			30 Rockefeller Plaza, Room 1615W
{philabs,crdgw1}!nbc1!scott		New York, NY  10112	+1 212/664-2787
  (This does not represent any [un]official opinions of NBC or its affiliates)

cluther@supernet.haus.com (Clay Luther) (12/06/90)

scott@nbc1.ge.com (Scott Barman) writes:

>However, because the system we pass mail with is on the Internet, I
>would like our Internet addresses sent directly to them.  For example,
>our pathalias database gives the following root for user@sun.com:

>	philabs!linus!sunne!sun!user

>While this works, if it was re-writen to crdgw1!sun.com!user (crdgw1 is
>a GE site and cheaper for us to call regularly for mail), life would
>probably be a lot better for many of us.

First, since you are using uucp, it means you are using rmail to transfer mail.
Because rmail does not currently understand @ addressing, you cannot get him to
send your internet address.

HOWEVER, if you and the site you connect to both run Smail 3.x, and the other
site is an internet site, you can use rsmtp, which performs a remote SMTP
transfer over UUCP instead of using rmail.  We use this to connect to one of
our forwarders, and you cannot tell we are a uucp only site from mail that
passes through there.

On the second question, you just need to ensure that the cost of using the 
crdgw1 link is cheaper than the cost of using the philabs link, via your
map entry file.  It would be sufficient to do something like:

nbc1  philabs(DEMAND), crdgw1(DIRECT)

This will make the crdgw1 link cheaper than the philabs link.  The last bit,
getting sun to always be expanded to sun.com requires a little sed'ing on your
part.  Pipe your pathalias output through the following command

  sed 's/!sun!/!sun.com!/'        

before directing the output to paths, so it looks like

  pathalias [options] | sed 's/!sun!/!sun.com!/' > paths

This will change all occurences of sun to sun.com in the paths file.  I do this
for uunet since our forwarder does not use uucp aliases.
-- 
Clay Luther, Postmaster          cluther@supernet.haus.com 
  Harris Adacom Corporation      postmaster@supernet.haus.com
  Voice:  214/386-2356           MS 23, PO Box 809022, Dallas, Tx 75380-9022
  Fax:    214/386-2159           Your mileage may vary.  Void where prohibited.

bdb@becker.UUCP (Bruce D. Becker) (12/10/90)

In article <1990Dec4.235720.6494@nbc1.ge.com> scott@nbc1.GE.COM (Scott Barman) writes:
|We are a uucp-only site running (Sun's latest) sendmail and smail (2.5).
|Our domain registration is via our parent company GE and they forward
|mail with the internet addresses to us.  This is fine, this is what we
|want.
|
|However, because the system we pass mail with is on the Internet, I
|would like our Internet addresses sent directly to them.  For example,
|our pathalias database gives the following root for user@sun.com:
|
|	philabs!linus!sunne!sun!user
|
|While this works, if it was re-writen to crdgw1!sun.com!user (crdgw1 is
|a GE site and cheaper for us to call regularly for mail), life would
|probably be a lot better for many of us.
|
|How do I get smail and/or pathalias do this?  Or do I make a change in
|my sendmail.cf?

	You need to include a local file as part of
	your pathalias database (it's called "uufix"
	here) in which special overrides are set up
	and news site maps are included which haven't
	yet been published in comp.mail.maps.

	Since pathalias chooses the paths according to
	the fastest route (among any duplicates), you
	should probably redeclare your direct connections
	to be of very low cost, regardless of what your
	map data says. The main exception is where you
	don't want to route mail thru a site you don't
	call (but which polls you) - then including the
	system name in angle brackets would perhaps be
	best.

	Other manipulations to get what you need can
	suggest themselves with a bit of thought - if
	the situation needs a hammer, judicious use of
	the "dead" keyword might be considered.

Cheers,
-- 
  ,u,	 Bruce Becker	Toronto, Ontario
a /i/	 Internet: bdb@becker.UUCP, bruce@gpu.utcs.toronto.edu
 `\o\-e	 UUCP: ...!uunet!mnetor!becker!bdb
 _< /_	 "Making the world safe for demography" - Western Culture (tm) Yoghurt