Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!seismo!uwvax!oddjob!hao!woods
From: woods@hao.UCAR.EDU (Greg Woods)
Newsgroups: comp.mail.uucp
Subject: Re: Smail2.3 troubles
Message-ID: <803@hao.UCAR.EDU>
Date: Mon, 27-Jul-87 19:47:03 EDT
Article-I.D.: hao.803
Posted: Mon Jul 27 19:47:03 1987
Date-Received: Wed, 29-Jul-87 00:36:34 EDT
References: <3825@garfield.UUCP>
Reply-To: woods@hao.UUCP (Greg Woods)
Organization: High Altitude Obs./NCAR, Boulder CO
Lines: 22
Summary: When in doubt, hack the source

In article <3825@garfield.UUCP> jeff1@garfield.UUCP writes:
>
>	I have smail set up and working correclty for any local mail.  The problem
>is that any mail passing through doesn't get routed properly. 

  What you really want here is to set up smail so that it will call
sendmail for any message coming in from a remote system, but NOT if it
is called from sendmail (the latter can easily result in an infinite loop
of sendmail and smail calling each other). This can be done very easily by
checking argv[0] and if it is "rmail", call sendmail, otherwise proceed
normally. This is done by checking argv[0] and if it is "rmail", set
handle=ALL, else set handle=NONE. In your sendmail.cf, you change 
any address of the form host!garbage-that-has-no-@ into garbage@host.uucp .
This gets sent into smail for routing to host via uucp. Thus, if the user
specifies just host!user, you will find the best path to host even if you
don't talk to host directly.

--Greg
-- 
UUCP: {hplabs, seismo, nbires, noao}!hao!woods
CSNET: woods@ncar.csnet  ARPA: woods%ncar@CSNET-RELAY.ARPA
INTERNET: woods@hao.ucar.edu