From owner-freebsd-questions Sat Feb 18 19:49:13 1995 Return-Path: questions-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id TAA02597 for questions-outgoing; Sat, 18 Feb 1995 19:49:13 -0800 Received: from late5.e-technik.uni-erlangen.de (late5.e-technik.uni-erlangen.de [131.188.254.132]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id TAA02591 for ; Sat, 18 Feb 1995 19:49:04 -0800 Received: (from tuucp@localhost) by late5.e-technik.uni-erlangen.de (8.6.8.1/8.6.6) id WAA02653 for freebsd-questions@freefall.cdrom.com; Sat, 18 Feb 1995 22:48:38 -0500 Received: from odin (iwte01-2.dialin.rrze.uni-erlangen.de [192.44.83.18]) by iwte01.dialin.rrze.uni-erlangen.de (8.6.9/8.6.6) with ESMTP id MAA14249; Sat, 18 Feb 1995 12:49:12 +0100 Received: (from eilts@localhost) by odin (8.6.8/8.6.6) id MAA00626; Sat, 18 Feb 1995 12:49:11 +0100 Date: Sat, 18 Feb 1995 12:49:11 +0100 From: Hinrich Eilts Message-Id: <199502181149.MAA00626@odin> Received: by NeXT.Mailer (1.100) Received: by NeXT Mailer (1.100) To: "M.C Wong" Subject: Re: sendmail with UUCP and DNS Cc: freebsd-questions@freefall.cdrom.com (freebsd-questions@freefall.cdrom.com) Sender: questions-owner@FreeBSD.org Precedence: bulk > I got a host on UUCP link, and recently I have added it to serves as DNS > server for other boxes in the private LAN. With DNS enabled, mail deliveries > to all local hosts are fine, but when any specified remote host name is not > found, I will like it send out via the UUCP link. Following config on host "tor" (aka "iwte01") does it on my machines: --------------------------------------------------------------------- divert(-1) include(`../m4/cf.m4') VERSIONID(`@(#)tor.mc') OSTYPE(bsd4.4)dnl Cwtor MASQUERADE_AS(iwte01.dialin.rrze.uni-erlangen.de)dnl FEATURE(always_add_domain)dnl define(`SMART_HOST', uucp-dom:late)dnl define(`confMESSAGE_TIMEOUT', 12w/5d)dnl define(`UUCP_MAX_SIZE', 250000)dnl # UUCP-Name equal MASQUERADE-Name DU$M LOCAL_NET_CONFIG # Format: User < @ Hostname > # directly by SMTP reachable hosts: decision by DNS-lookup # (already done by sendmail) # DNS-lookup successfully (i.e. found) -> hostname have a trailing . # hostname has a trailing . -> SMTP (else: send by smarthost) R$* < @ $+ . > $* $#smtp $@ $2. $: $1 < @ $2. > $3 MAILER(local)dnl MAILER(smtp)dnl MAILER(uucp)dnl ------------------------------------------------------------------- "late" is the UUCP host linking my local net to internet (this mail is send by "odin" -SMTP-> "tor" -UUCP-> "late" -SMTP-> "freefall"). Hinrich