*BSD News Article 39906


Return to BSD News archive

Xref: sserve comp.mail.sendmail:15645 comp.os.386bsd.questions:15413 comp.os.linux.help:72518
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mira.net.au!otis.apana.org.au!serval.net.wsu.edu!netnews.nwnet.net!ns1.nodak.edu!news.uoknor.edu!constellation!convex!hermes.oc.com!news.kei.com!news.mathworks.com!udel!gatech!swrinde!pipex!uunet!psinntp!wanchai.hk.super.net!hk.super.net!cklo
From: cklo@hk.super.net (Mr Cheuk Kong Lo)
Newsgroups: comp.mail.sendmail,comp.os.386bsd.questions,comp.os.linux.help
Subject: Re: UUCP & sendmail setup
Followup-To: comp.mail.uucp,comp.os.386bsd.questions
Date: 22 Dec 1994 14:23:05 GMT
Organization: Hong Kong Supernet
Lines: 65
Message-ID: <3dc249$1b7@hk.super.net>
References: <1994Dec13.224225.3519@hparc0.aus.hp.com>
NNTP-Posting-Host: 202.14.67.232
X-Newsreader: TIN [version 1.2 PL2]

M.C Wong (mcw@aus.hp.com) wrote:
: 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 ?

I've been trying to do (3) a while (and heck, without the Golden O'Reilly
Book :-( ) A little kuldge work for me, I look at the README of cf/ directory
and under the NON-SMTP BASED CONFIGURATIONS, I find partly the answer.

I had to rewrite the LOCAL_NET_CONFIG:

define(`SMART_HOST', uucp-dom:your_UUCP_provider)
LOCAL_NET_CONFIG
R$* < @ $* . > $*       $#smtp $@ $2. $: $1 < @ $2. > $3

This will (if I understand correctly), first try to use smtp
and if it fails, fall back to use UUCP mailer.

This works *only* a while, if your SLIP/PPP goes up and down, your
named will have cached some DNS info and when you send mail when PPP
is not connected, it will still queue up in /var/spool/mqueue 'coz
it (sendmail query named) finds the info from the cache but unable to 
send out. (And yet refused to queue up to UUCP).

The kuldge that I've done is to kill the named daemon when I start
SLIP/PPP and restart it after I disconnect from it. Not much trouble
as I can do it in script.

And I use the following .mc on my Linux and Sendmail 8.6.9

include(`../m4/cf.m4')
VERSIONID(`linux for setup with uucp which uses domain names')dnl
OSTYPE(linux)
FEATURE(always_add_domain)dnl
MAILER(local)dnl
MAILER(smtp)dnl
MAILER(uucp)
define(`confFORWARD_PATH', `$z/.forward.$w:$z/.forward')dnl
define(`confUSERDB_SPEC', /etc/userdb.db)
define(`UUCP_RELAY', `airhk.air.org')dnl
define(`SMART_HOST', uucp-dom:airhk)
LOCAL_NET_CONFIG
R$* < @ $* . > $*       $#smtp $@ $2. $: $1 < @ $2. > $3

: 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.

Hope it helps.

--
Chris Lo                    	   |                 _/_/_/    _/_/   _/_/_/
cklo@hkucs92.air.org        	   |              _/    _/   _/_/   _/   _/
chris@air.org               	   |            _/_/_/_/   _/_/   _/_/_/
cklo@HK.Super.NET	 	   | 	      _/    _/   _/_/   _/  _/_/
==============================================================================
-- OS/2 Warp + Linux
-- The best couple we ever have.
==============================================================================
#include <std/disclaimer.h>