*BSD News Article 86136


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!news.mathworks.com!fu-berlin.de!news.gtn.com!klemm.gtn.com!usenet
From: andreas@klemm.gtn.com (Andreas Klemm)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Moving from Linux to FreeBSD - any advice?
Date: 3 Jan 1997 11:17:30 GMT
Organization: FreeBSD makes fun
Lines: 75
Message-ID: <5aipsa$h63@klemm.gtn.com>
References: <matt.850577353@praetor> <59n06l$790@uriah.heep.sax.de>
NNTP-Posting-Host: klemm.gtn.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:33563

In article <59n06l$790@uriah.heep.sax.de>,
	j@uriah.heep.sax.de (J Wunsch) writes:
> matt@praetor.hna.com.au (Matt McLeod) wrote:
> 
>> Sendmail for mail-routing, but I'm considering a switch to Smail (only older
>> Linux sendmail binaries seem to handle UUCP correctly - newer binaries
>> [including those in the last FreeBSD snapshot I looked at] don't handle
>> routing via smarthost correctly [they insist on checking with a nameserver,
>> even when told not to], so I'll have to compile it anyway, so I may as well
>> evaluate other options while I'm at it).
> 
> You need (as it's described in the FreeBSD FAQ -- but that's why we
> call it a FAQ, since the question is frequently answered :) both:
> 
> FEATURE(nodns)dnl
> FEATURE(nocanonify)dnl
> 
> in your .mc file.  Of course, if you don't have a nameserver at all,
> you also need to comment out `bind' from /etc/host.conf, otherwise
> your sendmail will try to lookup the local hostname via the resolver,
> and thus DNS.
> 
> Sendmail doesn't use (external) DNS for me, and i'm running it this
> way for quite some years now.  The only difference is that i'm
> preferring a local nameserver, and thus have `bind' first in
> host.conf.
> 
> People telling you that you gotta recompile sendmail to work without a
> nameserver are only clueless (but it's not very hard to become
> clueless with sendmail, admittedly :).

I experienced, that you need additionally a file /etc/service.switch,
to prevent that sendmail is looking up hosts via the resolver ...

/etc/service.switch:
	hosts	files

But if you configure it right, then you have absolutely no problem.
I'm running sendmail uucp-only since years without problems.

Here my .mc file as a first start.

divert(-1)

include(`../m4/cf.m4')
VERSIONID(`@(#)klemm.mc 1.1 (AKL) 20/03/96')

OSTYPE(bsd4.4)dnl
Dmklemm.gtn.com

MASQUERADE_AS(klemm.gtn.com)dnl

define(`confDOMAIN_NAME', `$m')dnl
define(`UUCP_MAX_SIZE', 2000000)dnl
define(`SMART_HOST', `uucp-dom:easix')dnl
define(`UUCP_RELAY', `uucp-dom:easix')dnl

FEATURE(nodns)dnl
FEATURE(nocanonify)
FEATURE(use_cw_file)			<== if your host is known under
						different names ...
FEATURE(always_add_domain)
FEATURE(masquerade_envelope)
FEATURE(local_procmail)			<== only if you want sendmail
						to use procmail, which
						enables your users to
						use nice mail filtering
MAILER(local)dnl
MAILER(smtp)dnl
MAILER(uucp)dnl
-- 
andreas@klemm.gtn.com         /\/\___      Wiechers & Partner Datentechnik GmbH
   Andreas Klemm          ___/\/\/         Support Unix -- andreas.klemm@wup.de
pgp p-key  http://www-swiss.ai.mit.edu/~bal/pks-toplev.html  >>> powered by <<<
ftp://sunsite.unc.edu/pub/Linux/system/Printing/aps-491.tgz  >>>    FreeBSD <<<