Return to BSD News archive
Xref: sserve comp.mail.uucp:13670 comp.os.386bsd.questions:15216
Newsgroups: comp.mail.uucp,comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msunews!uwm.edu!vixen.cso.uiuc.edu!sdd.hp.com!hplabs!hplntx!hparc0.aus.hp.com!mcw
From: mcw@aus.hp.com (M.C Wong)
Subject: [1.1.5.1] UUCP & sendmail setup
Sender: news@hparc0.aus.hp.com (News Adminstrator)
Message-ID: <1994Dec13.224225.3519@hparc0.aus.hp.com>
Date: Tue, 13 Dec 1994 22:42:25 GMT
Nntp-Posting-Host: hpautow.aus.hp.com
Organization: HP Australasian Response Centre (Melbourne)
X-Newsreader: TIN [version 1.2 021193BETA PL3]
Lines: 185
Hi,
I have finally got my UUCP setup with my ISP, and here are some of the
background info of my machine etc. I will use some make-up names below.
I am running FreeBSD-1.1.5.1 and Taylor's UUCP 1.05.
(Note : Yes, I have read Taylor's UUCP 1.05 doc, Sendmail Installation and
Operation Guide [SMM:08] and /usr/src/usr.sbin/sendmail/cf/README,
etc except O'Reilly book as I haven't got it, and I will appreciate
if you can put up with my long message, as I have tried my best in
learning and understanding all the stuff I read before decided to
send this email, and of course many many experiments. 8) )
system on local network : freebsd.mydomain
system UUCP name required : freebsd.servdomain
ISP name : isp.servdomain
I have successfully uucp files across to isp.servdomain and also I have been
able to receive mail send to, say root@freebsd.servdomain, from other host.
And uucico session is able to retrieve those mail and put them on
freebsd.mydomain:/var/spool/mqueue. However, I think my sendmail.cf has not
been set up correctly to deliver mail to local receipients properly. That is,
when I did mailq, I got :
Mail Queue (1 request)
--Q-ID-- --Size-- -----Q-Time----- ------------Sender/Recipient------------
MAA17341 62 Sun Dec 11 12:36 wongm@latcs1.lat.oz.au
(Deferred: Name server: freebsd.servdomain: host name look)
root@freebsd.servdomain
wongm@freebsd.servdomain
guest@freebsd.servdomain
This was of course early experiment using default freefall.mc generated
sendmail.cf which wasn't set up to use UUCP mailer. So I tried the following :
include(`../m4/cf.m4')
VERSIONID(`@(#)mcw-freebsd.mc $Revision: 1.1 $')
OSTYPE(bsd4.4)dnl
FEATURE(nodns)dnl
MAILER(local)dnl
MAILER(uucp)dnl
MAILER(smtp)dnl
MAILER(usenet)dnl
define(`UUCP_RELAY', isp.servdomain)dnl
define(`confCHECKPOINT_INTERVAL', 4)dnl
define(`confAUTO_REBUILD', True)dnl
build sendmail.cf using m4, ie :
m4 < mcw-freebsd.mc > /etc/sendmail.cf
kill sendmail and restart. This time when I did mailq I got :
Mail Queue (1 request)
--Q-ID-- --Size-- -----Q-Time----- ------------Sender/Recipient------------
MAA17478 1507 Sun Dec 11 12:50 MAILER-DAEMON
(Deferred: No route to host)
wongm@latcs1.lat.oz.au
and the qfMAA17478 is :
P3540162
T787110618
DdfMAA17478
MDeferred: No route to host
Fr
$rinternal
$slocalhost
$_localhost
SMAILER-DAEMON
Rwongm@latcs1.lat.oz.au
H?P?Return-Path: MAILER-DAEMON
HReceived: from localhost (localhost) by freebsd.mydomain (8.6.8/8.6.6) with in
ternal id MAA17478; Sun, 11 Dec 1994 12:50:18 +1100
H?D?Date: Sun, 11 Dec 1994 12:50:18 +1100
H?F?From: Mail Delivery Subsystem <MAILER-DAEMON>
H?x?Full-Name: Mail Delivery Subsystem
HSubject: Returned mail: Host unknown
H?M?Message-Id: <199412110150.MAA17478@freebsd.mydomain>
HTo: wongm@latcs1.lat.oz.au
HMIME-Version: 1.0
HContent-Type: multipart/mixed; boundary="MAA17478.787110618/freebsd.mydomain"
Note that I used to have a SLIP connection with latcs1.lat.oz.au (my Uni).
and I still have an entry in /etc/hosts/, and that's whay it's complaining.
On the other hand, the other mail messages that get sent from a different
host generated the following error message which gets sent to postmaster (root):
Message 3/18 From Mail Delivery Subsystem Dec 11, 94 11:14:08 pm +1100
Date: Sun, 11 Dec 1994 23:14:08 +1100
Subject: Returned mail: Host unknown
To: postmaster
This is a MIME-encapsulated message
--XAA00361.787148048/freebsd.mydomain
The original message was received at Sun, 11 Dec 1994 23:14:07 +1100
from localhost
----- The following addresses had delivery problems -----
mcw@hpato.aus.hp.com (unrecoverable error)
----- Transcript of session follows -----
550 mcw@hpato.aus.hp.com... Host unknown
----- Original message follows -----
--XAA00361.787148048/freebsd.mydomain
Content-Type: message/rfc822
Return-Path: MAILER-DAEMON
Received: from localhost (localhost) by freebsd.mydomain (8.6.8/8.6.6) with int
ernal id XAA00359; Sun, 11 Dec 1994 23:14:07 +1100
Date: Sun, 11 Dec 1994 23:14:07 +1100
From: Mail Delivery Subsystem <MAILER-DAEMON>
Subject: Returned mail: Host unknown
Message-Id: <199412111214.XAA00359@freebsd.mydomain>
To: mcw@hpato.aus.hp.com
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="XAA00359.787148047/freebsd.mydomain"
This is a MIME-encapsulated message
--XAA00359.787148047/freebsd.mydomain
The original message was received at Sun, 11 Dec 1994 23:14:07 +1100
from root@localhost
----- The following addresses had delivery problems -----
root@freebsd.servdomain (unrecoverable error)
wongm@freebsd.servdomain (unrecoverable error)
guest@freebsd.servdomain (unrecoverable error)
----- Transcript of session follows -----
550 root@freebsd.servdomain,wongm@freebsd.servdomain,guest@freebsd.servdomain... Host unknown
----- Original message follows -----
[... deleted]
As described above, freebsd.mydomain = freebsd.servdomain, except that
the later is used for UUCP linke purpose.
Also in my /etc/sendmail I added a line :
DUfreebsd.servdomain
Note that, freebsd.mydomain is going to be the dedicated UUCP host, and
is expected to be used for relaying emails from all other machines on the same
net out to isp.servdomain, so does the above UUCP_RELAY set correctly ? Or
should it be set to freebsd.mydomain ?
Also, do I need to make any changes to /etc/hosts to define freebsd.servdomain
? What should I do to get sendmail on freebsd.mydomain to process the queued
message in /var/spool/mqueue and send it to correct receipients even though
the message are detined for receipient@freebsd.servdomain ?
Also, how can I configure my mailer (elm) to be able to :
1) send mail to receipient@freebsd,servdomain
2) reply to mails sent from other hosts to freebsd.servdomain and get
transfered to freebsd.mydomain ?
3) send mail to other outside hosts receipients using UUCP as default if the
hostname is not recognized or found in /etc/hosts ? What happen if I add
IP (SLIP/PPP) connection later, can I configure sendmail to try SMTP mailer
for some hosts, and others with UUCP mailer ? How to specify default ?
4) I want one of my machine with direct UUCP link to use existing domain name
with other boxes on same LAN, while recognizing the ISP UUCP link domain
as well, so that it can serves as a UUCP gateway for relaying all non-local
mail traffics to my ISP for further delivery.
I know this is long, and I appreciate your patience, and please email your
replies.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
M.C Wong Email: mcw@hpato.aus.hp.com
Australian Telecom Operation Voice: +61 3 272 8058
Hewlett-Packard Australia Ltd Fax: +61 3 898 9257
31 Joseph St, Blackburn 3130, Australia OS: FreeBSD-1.1.5.1
http://hpautow.aus.hp.com:9999/~mcw/mcw.html (or http://hpautorf/~mcw)