[comp.sys.next] Help with UUCP mail and sendmail

herndon@sctc.com (William R. Herndon) (02/07/91)

    I have a standalone 030 cube running NS2.0 and am having trouble 
    setting up my external mail connection.  I have managed to set
    up a UUCP connection to a machine on the INTERNET and can receive
    mail at the address:

        <username>@alexander.mn.org   ( where "alexander" is the name
                                        of my machine, obviously )

    However, after hours of pouring over the available documentation on
    sendmail, rmail, and UUCP, I cannot figure what needs to be done to
    cause the NeXT Mail Agent ( and sendmail ) to recognize that all 
    domain style addresses are to be sent out over my UUCP connection.

    I have tried things like:

        tcnet!<user>@<host>.<domain>  ( where "tcnet" is the name of the 
                                        machine to which I am connected via
                                        UUCP )

    But the mail bounces back.

    What I would like ideally is to have names of the form:

        <user>@<host>.<domain>

    be sent out over the UUCP connection with their address intact so that
    tcnet could forward them appropriately, but I don't know how to 
    accomplish this.  My guess is that I'll have to modify some configuration
    file.  Perhaps "/etc/sendmail.cf"?
    
    What I've read seems to indicate that a rule will have to be placed in
    /etc/sendmail.cf that rewrites addresses, in which a domain is unrecog-
    nized, to a UUCP style address.  For example:

        <user>@<host>.<domain>

    would be rewritten as:

        tcnet!<user>@<host>.<domain>  

    but I am just guessing.

    Anybody want to help me out?  Thanks in advance. 



								- Max


-------------------------------------------------------------------------------
William R. Herndon                              
Secure Computing Technology Corp.                  
						Once you've had black,
		 				you'll never go back...NeXT
bill@alexander.mn.org
herndon@sctc.com
(612) 482-7431 			

glenn@heaven.woodside.ca.us (Glenn Reid) (02/09/91)

In article <1991Feb7.145251.2329@sctc.com> herndon@sctc.com (William R. Herndon) writes:

>    What I would like ideally is to have names of the form:
>
>        <user>@<host>.<domain>
>
>    be sent out over the UUCP connection with their address intact so that
>    tcnet could forward them appropriately, but I don't know how to 
>    accomplish this.  My guess is that I'll have to modify some configuration
>    file.  Perhaps "/etc/sendmail.cf"?

Yes, you need to edit /etc/sendmail.cf, but it's a relatively easy edit.

Change these lines:

    # major relay mailer
    DMetherl

    # major relay host
    DRmailhost
    CRmailhost

To this:

    # major relay mailer
    DM uucp

    # major relay host
    DR your_uucp_neighbor
    CR your_uucp_neighbor

There's one other useful hack.  Find the line that looks like this:

    Muucp,        P=/usr/bin/uux, F=msDFMhuU, S=13, R=23,
          A=uux - -r $h!rmail ($u)

and get rid of the "-r " in the second line.  That will cause outgoing
UUCP mail to get tried right away, instead of just being put in the
outgoing queue.

I hope that helps.

Glenn
-- 
 Glenn Reid				RightBrain Software
 glenn@heaven.woodside.ca.us		NeXT/PostScript developers
 ..{adobe,next}!heaven!glenn		415-851-1785 (fax 851-1470)

Irving_Wolfe@happym.wa.com (02/11/91)

I believe the sendmail.cf files shipped with 2.0 are seriously broken for
anyone using uucp rather than (or in addition to) tcp/ip network type
connections.

I have fixed a couple of bugs that make it somewhat usable, but I still get
badly munged headers (though the mail now goes in both directions reliably).

I would be happy to continue to learn about sendmail and produce and post a
good sendmail.cf file, with without ftp on the Internet I have no idea how to
get the necessary information.  If someone better connected would be willing
to get me the sendmail sources package and Eric's documentation on the .cf
files, I'll get to work on it because I really need a fixed version.  The
material in Evi Nemeth's book was helpful but not quite adequate for me to
complete the fixes.

The following diff shows what I changed in sendmail.mailhost.cf.  It should at
least get the mail through (with munged headers).  "bippo" is the name of the
machine (connected by uucp) that does the address translation for outside
transmission.

< is mine, > is the old way; I did this backwards

19c19
< Dj$?m$w.$m$|$w$.
---
> Dj$?m $w.$m $| $w $.
37,38c37,38
< DRbippo
< CRbippo
---
> DR mail-relay
> CR mail-relay
65d62
< Dmbippo.wa.com
80c77
< Dq$g ($?x$x$|$g$.$?w on $w$.)
---
> Dq$g$?x ($x)$.
264c259
<       A=uux - $h!rmail ($u), E=\n
---
>       A=uux - -r $h!rmail ($u)
270a266
> 
338,339c334,335
< # R<@$-.uucp>:$+              $#error $:Never heard of UUCP host $1
< # R$+<@$-.uucp>               $#error $:Never heard of UUCP host $2
---
> R<@$-.uucp>:$+                $#error $:Never heard of UUCP host $1
> R$+<@$-.uucp>         $#error $:Never heard of UUCP host $2
343c339
< R$*<@$*.$+>$*         $#$M    $@$R $:$1<@$2.$3>$4     user@any.domain
---
> #R$*<@$*.$+>$*                $#$M    $@$R $:$1<@$2.$3>$4
user@any.domain
345c341
< #R$*<@$+.$->$*                $#ddn $@ $2.$3 $:$1<@$2.$3>$4
user@any.domain
---
> R$*<@$+.$->$*         $#ddn $@ $2.$3 $:$1<@$2.$3>$4   user@any.domain

cpenrose@sdcc13.ucsd.edu (Christopher Penrose) (02/12/91)

In article <1991Feb7.145251.2329@sctc.com> herndon@sctc.com (William R. Herndon) writes:
>
>    However, after hours of pouring over the available documentation on
>    sendmail, rmail, and UUCP, I cannot figure what needs to be done to
>    cause the NeXT Mail Agent ( and sendmail ) to recognize that all 
>    domain style addresses are to be sent out over my UUCP connection.
>
>    I have tried things like:
>
>        tcnet!<user>@<host>.<domain>  ( where "tcnet" is the name of the 

I have a uucp connection too.  Try this:

tcnet!hoax.ucsd.edu!deacon

where the internet address is:

deacon@hoax.ucsd.edu

This works for me.


Christopher Penrose
jesus!penrose@esosun.css.gov
cpenrose@ucsd.edu

bennett@mp.cs.niu.edu (Scott Bennett) (02/13/91)

In article <2381@happym.wa.com> Irving_Wolfe@happym.wa.com writes:
>I believe the sendmail.cf files shipped with 2.0 are seriously broken for
>anyone using uucp rather than (or in addition to) tcp/ip network type
>connections.
>
>I have fixed a couple of bugs that make it somewhat usable, but I still get
>badly munged headers (though the mail now goes in both directions reliably).
>
>I would be happy to continue to learn about sendmail and produce and post a
>good sendmail.cf file, with without ftp on the Internet I have no idea how to
>get the necessary information.  If someone better connected would be willing
>to get me the sendmail sources package and Eric's documentation on the .cf
>files, I'll get to work on it because I really need a fixed version.  The
>material in Evi Nemeth's book was helpful but not quite adequate for me to
>complete the fixes.
>
     If you have only a uucp link, then the following information may 
not help you a lot because you'll need to use ftp(1).  Use anonymous
ftp to uxc.cso.uiuc.edu and look in the cso/sendmail directory.  There
is a cf subdirectory that should have all the materials for a good
example.  Keep in mind, though, that you may wish to ftp *all* of the
sendmail directory and rebuild sendmail for your machine because the
cf stuff may not work with a version of sendmail that is backdated too
far.  I don't have Rel. 2.0 of the NeXT software yet, so I don't know
what version of sendmail comes with it.  

>  [text deleted  --SJB]


                                  Scott Bennett, Comm. ASMELG, CFIAG
                                  Systems Programming
                                  Northern Illinois University
                                  DeKalb, Illinois 60115
**********************************************************************
* Internet:       bennett@cs.niu.edu                                 *
* BITNET:         A01SJB1@NIU                                        *
*--------------------------------------------------------------------*
*  "WAR is the HEALTH of the STATE"  --Albert Jay Nock (I think:-)   *
**********************************************************************

dpaulso@k30b.nswc.navy.mil (ef80) (02/19/91)

In article <1991Feb15.174115.57@cunixf.cc.columbia.edu> das15@cunixa.cc.columbia.edu (Douglas A Scott) writes:
>
>	Also, addresses like tcnet!<user>%<host>.<domain> will work.
>					 ^
>					 Note the use of '%' rather than '@'.

While this may work, I have always understood that the mixing of '%' and '@'
is A Bad Idea.  Since it's possible to arrange your sendmail.cf file
so that addresses that are not "local" automatically get routed to
your uucp feed, why not just do that?

/dave




--
Dave Paulson		dpaulso@relay.nswc.navy.mil (work)
Synetics/NAVSWC		talos!SandBox!dave@uunet.uu.net (home,NeXTmail)