[comp.sys.hp] sendmail question

mat@cdbhp1.UUCP (W Mat Waites) (04/02/91)

What mods do I need to make to sendmail.cf so that sendmail will
forward Internet style addresses over UUCP?

We have a local Ethernet, and I'd like for unrecgnized host references
to be forwarded to our (uucp connected) Internet connection.
e.g. If someone mails to bozo@uunet.com then I'd like it to be changed
to emory!uunet.com!bozo.

Thanks for any info,
Mat

-- 
W Mat Waites              |  Unlike most of you, I am not a nut.
{gatech,emory}!cdbhp1!mat |             -H. Simpson

lrb@alex.ctrg.rri.uwo.ca (Lance R. Bailey) (04/02/91)

In article <25@cdbhp1.UUCP> mat@cdbhp1.UUCP (W Mat Waites) writes:
>What mods do I need to make to sendmail.cf so that sendmail will
>forward Internet style addresses over UUCP?

>We have a local Ethernet, and I'd like for unrecgnized host references
>to be forwarded to our (uucp connected) Internet connection.
>e.g. If someone mails to bozo@uunet.com then I'd like it to be changed
>to emory!uunet.com!bozo.

in your S0, the final delivery ruleset, put in a FINAL line of the sort:

R$*@$*	            $#uux$@emory$:emory!$2!$1              #uux host!rmail...


now, IF you do not have a  uux mailer rule, then the uux mailer should look
like this:

Muux,           P=/usr/bin/uux, F=DFMRChuU, S=6, R=5,
                A=uux - $h!rmail $u


note, that the Sender rule for me is rule 6, and the recip is rule 5. pick
some numbers for yours that are not all ready in use.

my S6 and S5 are as follows:

#########################################################
#       ruleset five: ruleset R for mailer uux          #
#               rules for uucp RECIPIENT REWRITING      #
#               <address@local-host....> => address     #
#               <user@host.UUCP> => host!user           #
#               <user@host.. => host...!user            #
#########################################################
S5
R$*@$j                  $@$1
R$*@$*.UUCP             $@$2!$1
R$*@$*                  $@$2!$1

#########################################################
#       ruleset six: ruleset S for mailer uux           #
#               UUCP rewriting for SENDER field         #
#               MUST resolve to host!address            #
#               (this isn't well documented)            #
#               this means uucp mail looks like:        #
#               From user ..date.. remote from localhost#
#               From: local-host!user                   #
#               not consistent but what can you do?     #
#########################################################
S6
R$*@$j                  $@cdbhp1!$1
R$*@$*.UUCP             $@cdbhp1!$2!$1
R$*@$*                  $@cdbhp1!$2!$1
R$*                     $@cdbhp1!$1

-- 
Lance R. Bailey  Systems Manager        box: Robarts Research Institute
          email: lrb@rri.uwo.ca              Clinical Trials Resources Group
            fax: 519.663.3789                P.O. Box 5015, 100 Perth Dr.
            vox: 519.663.3787 ext. 4108      London, Canada N6A 5K8

mat@cdbhp1.UUCP (W Mat Waites) (04/03/91)

In article <25@cdbhp1.UUCP> mat@cdbhp1.UUCP (W Mat Waites) writes:
>What mods do I need to make to sendmail.cf so that sendmail will
>forward Internet style addresses over UUCP?
>
>We have a local Ethernet, and I'd like for unrecgnized host references
>to be forwarded to our (uucp connected) Internet connection.
>e.g. If someone mails to bozo@uunet.com then I'd like it to be changed
>to emory!uunet.com!bozo.

Well, I ended up solving my own problem.

I modified the SMTP relay part of sendmail.cf to use
the uucp protocol instead of tcp and, wow!, it works

Here is the first part where you set the relay name

# SMTP relay for unresolved @ addresses
# Actually UUCP relay for unresolved @ addresses - wmw 4/1/1991
DSname-o-relay

Just find the "DS" in your sendmail.cf and replace where I have put
name-o-relay with the name of the uucp site you'd like to forward
Internet style addresses to.

Find this part farther down in the file:

# pass unresolved SMTP addresses to the SMTP relay (don't relay source routes)
#R$+<@$+>		$#tcp$@$S$:$1<@$2>	user@host to SMTP relay
#
# MODIFICATION - forward Internet style addresses via UUCP
# wmw - 4/1/1991
#
R$+<@$+>		$#uucp$@$S$:$1<@$2>	user@host to UUCP relay


Copy the line with "tcp" in it and change tcp to uucp.
Comment out the tcp version and uncomment the uucp version.

That's all there is to it!

Mat

-- 
W Mat Waites   mat@cdbhp1.UUCP |  Unlike most of you, I am not a nut.
{gatech,emory}!cdbhp1!mat      |             -H. Simpson