Newsgroups: comp.mail.sendmail
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!sdd.hp.com!news.cs.indiana.edu!ux1.cso.uiuc.edu!uxc.cso.uiuc.edu!paul
From: paul@uxc.cso.uiuc.edu (Paul Pomes - UofIllinois CSO)
Subject: Re: IDA Sendmail questions...
Message-ID: <1991May18.193649.23248@ux1.cso.uiuc.edu>
Sender: usenet@ux1.cso.uiuc.edu (News)
Reply-To: Paul-Pomes@uiuc.edu
Organization: University of Illinois at Urbana
References: <HOGAN.91May17113404@cujo.csl.sri.com>
Date: Sat, 18 May 1991 19:36:49 GMT
Lines: 68

In message <HOGAN.91May17113404@cujo.csl.sri.com> you write:

|I have a couple of questions/problems with Sendmail 5.65b with IDA
|1.4.3 enhancements:
|
|1) I got it from UIUC, but for the life of me I cannot get it to work
|   with phquery...I have qi/ph installed and it seems to work fine.  Does
|   anyone know the magic incantations to make sendmail call phquery to
|   check for an email address ?

Assuming you are a) using ida/cf/Sendmail.mc file as your base, and b)
want to send foo@sri.com addresses through phquery, edit the following
files as follows:

1) ida/cf/yourhost.m4
Add the line
define(ALTERNATENAMES, sri.com)

2) /usr/local/lib/mail/mailertable	(or wherever mailertable lives)
Add the line

PH!cujo.csl.sri.com	sri.com

This assumes that cujo has phquery installed.

|2) How does one set up the PATHALIAS table to use the Internet names
|   of sites to make UUCP mail delivery more efficient?  For example,
|   the path from here to username at the uucp site unisql is:
|
|	fernwood!ames!cs.utexas.edu!uudell!sequoia!unisql!username

The trick here is to have merge a local addition to the UUCP map data
that lists a series of pseudo-connections.  Example:

cujo	rutgers(DIRECT), mcsun(DIRECT), inria(DIRECT),
	xanth(DIRECT), cs.utexas.edu(DIRECT)

combined with the published map data would generate the pathalias entry
of cs.utexas.edu!uudell!sequoia!unisql!%s

For each UUCP name in the list above, a mailertable entry is needed to
locate the corresponding Internet domain name:

TCP-U:rutgers.edu	rutgers.uucp
TCP-U:mcsun.eu.net	mcsun.uucp
TCP-U:inria.inria.fr	inria.uucp
TCP-U:xanth.cs.odu.edu	xanth.uucp

Mail sent to rutgers!foo!user will be sent to rutgers.edu via TCP while
preserving a UUCP address in the header.  Mail sent to user@rutgers.edu
won't be affected and will have the usual domain address in the header.

|   Or mail to username@xanth.UUCP, gets rewritten (based upon the
|   pathalias table) to:
|
|	fernwood!ames!xanth!username
|
|   Where it could better be sent to:
|
|	username@xanth.cs.odu.edu

This could also be handled with domaintable.

/pbp
--
Paul Pomes, Computing Services Office
University of Illinois - Urbana
Email to Paul-Pomes@uiuc.edu
