Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!uflorida!ziggy!usfvax2!tct!chip From: chip@tct.uucp (Chip Salzenberg) Newsgroups: comp.mail.misc Subject: Re: Help with smail 2.5 & sendmail configuration Keywords: smail 2.5 sendmail Message-ID: <25F57553.371@tct.uucp> Date: 7 Mar 90 20:55:47 GMT References: <630@alfred.orl.fl.us> Organization: ComDev/TCT, Sarasota, FL Lines: 39 According to tarpit!alfred!elliot: >machine1 is connected to machine2 via a network. NO uucp link >machine2 is connected to machine1 via a network. NO uucp link >machine3 is connected to BOTH machine1 & machine2 via uucp. machine3 has a >map of the world and I want ALL uucp traffic routed through machine3 and >network mail sent to sendmail which will send it through the network link. No problem. Use Smail 2.5 and Deliver 2.0. (You all KNEW this was coming.) Configure Smail to use Deliver for both local mail and UUCP. Install a paths database on machine2 that only says: .uucp machine3!%s machine1 machine1!%s machine2 %s And install a complementary file on machine1. Then write a post-user delivery file for Deliver that translates "machine[12]!user" into the appropriate network incantation -- something like this: for u do case "$u" in machine[12]!*) m=`echo "$u" | sed -e 's/!.*$//'` # Machine x=`echo "$u" | sed -e 's/^[^!]*!//'` # User echo "|/usr/lib/sendmail -oem -oi '$x@$m'" # use SMTP ;; *) echo "$u" ;; esac done Tadaa! Instant mixing of network and UUCP transports. Smail knows who talks to who, but it doesn't have to know the transport method for each connection -- that's handled by Deliver. -- Chip Salzenberg at ComDev/TCT , "The Usenet, in a very real sense, does not exist."