From: hashton@twics.co.jp (HUGH ASHTON)
Newsgroups: comp.sys.next.sysadmin
Subject: sendmail problems (help wanted, please)
Date: 20 Aug 92 18:42:53 GMT
Organization: TWICS, Tokyo, Japan

--------------------- 
sendmail help needed
---------------------

Can some kind soul out there please help with a sendmail query? 
Please forgive if this is a FAQ, but I have no access to anonymous
ftp here, and so can't access FAQ lists or any of the useful tools
which float around. 

We have a NeXT network which uses a mail server (server) and a
machine connected to a modem (techw1).  It is not geographically
convenient to make techw1 the mail server, or to connect the modem
to server (which would solve a lot of our problems). 

We have recently acquired a feed to the Internet Mail, which in
theory, should allow us to send and receive mail from and to any 
machine on the network. 

The system at present is set up so that a TCP uucp link is set up
between techw1 and server so that server polls techw1 every 5
minutes or so (hardly elegant, but it works).  techw1 has a modem
uucp link set up to a VAXlet which is set up as a gateway to the
Internet.  I have hacked techw1's sendmail.cf (which I copied
from sendmail.cf.mailhost) so that  

DM uucp

DR twics
CR twics

(twics being the name of the VAXlet which is acting as the
gateway).  I have also followed the Ruleset 0 decomment and
comment instructions. 

On server, I have set

DM uucp

DR techw1
DR techw1

and hacked Ruleset 0.
When sending a message from techw1 to foo@bar.com, this goes
straight into the uucp queue and on a uucico call to twics, it gets
delivered to twics (what happens after that, I don't know - I
suspect a black hole in the immediate vicinity, but that's not
*my* immediate problem!). 

When sending a message from server to foo@bar.com, the message
gets placed in the uucp spool queue.  On the next
crontab-generated poll it gets passed to techw1, which sticks it
in the twics uucp spool queue, and it goes out into the big wide
world. 

However, if I send from a client of server, the mail bounces with:

>     ----- Transcript of session follows ----- 421 Host
>  crestec.twics.co.jp not found for mailer ddn. 550
>  <hashton@crestec.twics.co.jp>... Host unknown
>  
>     ----- Unsent message follows ----- Return-Path: <hashton>
>  Received: from  techw3  (techw3) by  server  (NeXT-1.0 (From
>  Sendmail 5.52)/NeXT-2.0) 	id AA06068; Thu, 20 Aug 92 08:56:47
>  JST Message-Id: <9208192356.AA06068@ server > 
>  

Examining /usr/spool/mqueue/syslog on server, I discover that
if I send a message from server or techw1, the syslog contains: 

Aug 20 08:55:22 server sendmail[6060]: AA06060:
to=hashton@crestec.twics.co.jp, delay=00:00:01, stat=Sent 

and if I send from a client, I get the following in the syslog: 

Aug 20 08:56:48 server sendmail[6070]: AA06068:
to=<hashton@crestec.twics.co.jp>, delay=00:00:01,
stat=Host unknown 

Somehow, somewhere, the address is being parsed as
<foo@bar.com> from a client and is not parsed this way from server
or techw1.  I thought (in my innocence) that setting a relay to uucp
on server would parse any unknown domains correctly.  No way.  btw,
when an address goes out from techw1, it's parsed as: 

hashton twics (8/20-13:03-2657) XQT QUE'D (rmail bar.com!foo)

This comes from /usr/spool/uucp/LOGFILE.  Seems OK to me (but
then, I'm stupid). 

I have also clobbered techw1's local mail in the process.  I used to
be able to send to fred (all users are networkwide), but I now have
to send to fred@server (I lose user pictures, aliases, etc.,
because I now appear to live in a different domain).  If I try
sending to fred, I get: 
>  techw1:38# mail -v fred
>  Subject: Test
>  Clobbered
>  .
>  EOT
>  fred... Connecting to  (local)...
>  mail: /usr/spool/mail/fred: cannot append
>  mail: cannot open dead.letter
>  fred... 554 unknown mailer error 1
>  Saving message in //dead.letter
>  //dead.letter... Sent
>  
>  
This is a minor hassle by comparison with the problem of clients
being unable to deliver outside their domain. 

I have tried to RTFM and the O'Reilly/Todino book.  I don't claim to
understand it all, but pointers to the relevant places in
documentation would be valuable. 

My e-mail address is now officially:
hashton@crestec.twics.co.jp

Mail addressed to my old address:
hashton@twics.co.jp

_should_ be forwarded.  If it bounces:

| Hugh Ashton         
| Tel:+81-53-435-3553  Fax:+81-53-435-3356 
| hashton@crestec.twics.co.jp 
| SnailMail:Crestec Inc., 676 Kasaishinden-cho,
| Hamamatsu-shi 431-31, Japan
| NextMail welcome    
+-----------------------------------------------------------+
| #include <std.witty.message>                              |