[comp.mail.elm] UUCP and SMTP Mail Routing

eddjp@althea.UUCP (Dewey Paciaffi) (09/09/89)

Hi. I've been having a little problem with my mail lately, and was hoping
someone could come to my rescue.

I run elm and smail on a Xenix 386. I am connected to some local PCs that run
uupc-mail. The local and uucp mail to the PCs run fine. Last week I made
a TCP-IP connection to a local machine. Mail moves well over that connection
using the vendor supplied SMTP package. 

My problem is that I would like to have elm/smail hand mail over to the
SMTP package when appropriate. Currently any bang or domain address mail
goes to uux, when I use elm.

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?

I would appreciate any insight that anyone could offer. I have crossposted
this to a few groups, and so would prefer email replies where possible.

Thanks very much,
Dewey Paciaffi			eddjp@althea.UUCP

chip@vector.Dallas.TX.US (Chip Rosenthal) (09/10/89)

In article <301@althea.UUCP> eddjp@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@vector.Dallas.TX.US / Dallas Semiconductor / 214-450-5337
Someday the whole country will be one big "Metroplex" - Zippy's friend Griffy

pnessutt@dmshq.mn.org (Bob Monio) (09/11/89)

In article <737@vector.Dallas.TX.US> chip@vector.Dallas.TX.US (Chip Rosenthal) writes:
>In article <301@althea.UUCP> eddjp@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.

Hmm.  Has anyone used the tools provided in Smail 3.1 to do the same
thing?  We are currently running that on our machines, but I haven't
had the time to play with the SMTP/Smail configuration.  For now we've
relied on using Smail to generate a uux call and send the mail via
Excelan's 'ud' daemon.  I expect though that we'll need to investigate
SMTP more in the future since our network is growing beyond just uucp
hosts.

If anyone has worked with this, please contact me via Email.  Thanks.

 -Bob


-- 
 Robert A. Monio                     
 National Information Services, Inc.   "The beauty of competition is that 
 pnessutt@dmshq.mn.org                  it makes everyone honest."
 ..uunet!rosevax!nis!dmshq!pnessutt           -- Jeff Anderson, MIPS Inc.

chip@ateng.com (Chip Salzenberg) (09/13/89)

According to eddjp@althea.UUCP (Dewey Paciaffi):
>My problem is that I would like to have elm/smail hand mail over to the
>SMTP package when appropriate. Currently any bang or domain address mail
>goes to uux, when I use elm.

My solution to this problem is:

    1.  Use a TCP/IP implementation that has a socket library; in my
	case, it's SCO TCP/IP controlled release.
    2.  Get Smail 3.1.
    3.  Compile Smail 3 with "HAVE_BSD_NETWORKING=yes" in configuration.
    4.  Install Smail 3 as /usr/lib/sendmail.
    5.  Configure Elm to use /usr/lib/sendmail.
    6.  Let Smail 3 figure out how to deliver each message.

Of course, Smail 3 isn't generally available.  IMHO, the solution posted by
Chip Rosenthal using Deliver is the next best idea.
-- 
You may redistribute this article only to those who may freely do likewise.
Chip Salzenberg at A T Engineering;  <chip@ateng.com> or <uunet!ateng!chip>
          "If you push something hard enough, it will fall over."
		   -- Fudd's First Law of Opposition

randy@chinet.chi.il.us (Randy Suess) (09/14/89)

In article <250D4A4A.6226@ateng.com> chip@ateng.com (Chip Salzenberg) writes:
]    2.  Get Smail 3.1.
]Of course, Smail 3 isn't generally available.  

	How does one go about getting 3.1?  I have 3.0, but is too
	buggy to use (on a SysVr3.1 system).

	-randy

-- 
Randy Suess
randy@chinet.chi.il.us

allbery@NCoast.ORG (Brandon S. Allbery) (09/15/89)

As quoted from <9567@chinet.chi.il.us> by randy@chinet.chi.il.us (Randy Suess):
+---------------
| In article <250D4A4A.6226@ateng.com> chip@ateng.com (Chip Salzenberg) writes:
| ]    2.  Get Smail 3.1.
| ]Of course, Smail 3 isn't generally available.  
| 
| 	How does one go about getting 3.1?  I have 3.0, but is too
| 	buggy to use (on a SysVr3.1 system).
+---------------

Will people PLEASE stop telling us to get Smail 3.1 when we can't?!

++Brandon
-- 
Brandon S. Allbery, moderator of comp.sources.misc	     allbery@NCoast.ORG
uunet!hal.cwru.edu!ncoast!allbery		    ncoast!allbery@hal.cwru.edu
bsa@telotech.uucp, 161-7070 BALLBERY (MCI), ALLBERY (Delphi), B.ALLBERY (GEnie)
Is that enough addresses for you?   no?   then: allbery@uunet.UU.NET (c.s.misc)

root@nebulus (Dennis S. Breckenridge) (09/17/89)

randy@chinet.chi.il.us (Randy Suess) writes:

>	How does one go about getting 3.1?  I have 3.0, but is too
>	buggy to use (on a SysVr3.1 system).
>	-randy

Randy It is available on my machine up here in Toronto, BTW Steve 
Vinokuroff says hello as well. (Both of us are "X" CBBS sysops) 

There have been MANY questions left for me on how to connect to this system
via uucp to request  files.  Actually, the  procedure  is very simple. Just
login as "bbsuucp" with no password. All of the directories used by this bbs
have  read privileges;  therefore, you  can request and  receive any file or
files that are available for downloading. You must remember the full
path names of the files. Any file that is in the bbs directory
has the path name of /usr/local/bbs/data/bbs/. Likewise, the unix
directory has the path name of /usr/local/bbs/data/unix/. This 
is also true for each and every file directory on the system. You can 
get the directory name from the A(rea change) command while in the 
file section. You will recognize the name by the first field displayed 
on each and every line.  Just add /usr/local/bbs/data/ to whatever 
is displayed.

As an example, if you want the file, xbbs.cpio.Z, the full pathname is
/usr/local/bbs/data/bbs/xbbs.cpio.Z.

To get smail3.1 uucp from /usr/local/bbs/data/unix/smail31.cpio.Z here 
on my system. I have the patches up to patch 16 or so.

If you have a file that you would like to send to this system for others
to use, please send it to /usr/spool/uucppublic.

PHone numbers (416) 733-1609 (microcom 9624)
              (416) 733-1630 (microcom 9624)
              (416) 733-1696 (Human Operated Answering Machine)
-- 
Dennis S. Breckenridge           Whats that you say? "Goomba!"
Toronto, Canada
(416) 733-1696