UUCP and SMTP Mail Routing

Chip Rosenthal chip at vector.Dallas.TX.US
Sun Sep 10 06:50:30 AEST 1989


In article <301 at althea.UUCP> eddjp at althea.UUCP (Dewey Paciaffi) writes:
>Can I make smail cognizant of the fact that I have a TCP host connected
>and route mail to it? Is this something that requires sendmail, and if
>so, does anyone know where I could locate a copy of it?

You don't mention the vendor, but I faced this problem when I tried to
use Excelan's SMTP.  At the time, the solution required two parts, and
the second part hinged upon Chip Salzenberg's deliver program.

The first part is to use the little-known but documented feature of
pathalias to generate something besides "bang-paths".  For example,
if you just say:

	mysite	othersite(COST)

then pathalias will say:

	othersite!%s

However, if you say:

	mysite	%othersite(COST)

then pathalias will say:

	%s%%othersite	(the double-% sprintf's down to user%othersite)

To smail, this is a local address, and therefore invokes the local delivery
agent rather than uux.  The second step is to use "deliver" rather than
"execmail" as the local delivery agent.  You then may make an entry in
your system delivery control file which recognizes:

	*%othersite

and passes it off to the SMTP client for delivery.

This solution works, but is a bit ugly because of all the pieces you need
to maintain.  "Deliver" is available from your friendly neighborhood
comp.sources.unix archives, with a newer version in the queue for release
(if I put on my optimist's hat).
-- 
Chip Rosenthal / chip at vector.Dallas.TX.US / Dallas Semiconductor / 214-450-5337
Someday the whole country will be one big "Metroplex" - Zippy's friend Griffy



More information about the Comp.unix.xenix mailing list