*BSD News Article 24731


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!constellation!osuunx.ucc.okstate.edu!moe.ksu.ksu.edu!vixen.cso.uiuc.edu!milo.mcs.anl.gov!xray!winans
From: winans@xray.aps.anl.gov (John R. Winans)
Subject: Re: Mail in NetBSD
Message-ID: <CHMIDC.5Bq@mcs.anl.gov>
Sender: usenet@mcs.anl.gov
Organization: Argonne National Laboratory, Chicago Illinois
References: <CHF3Ly.6LL@barclays.co.uk>
Date: Mon, 6 Dec 1993 17:10:22 GMT
Lines: 51

In article <CHF3Ly.6LL@barclays.co.uk> Paul.Medcalf@barclays.co.uk writes:
>I have a NetBSD 0.9 installation and mail locally does not work. Mail does not
>drop any mail in /var/spool/mail at all.  Has anybody any suggesttions ?

The way I did it requires that the src09.* files are installed on the machine.  However
you can do it without them if you know sendmail.cf-speak... which most people do not.

If you have the src09.* stuff installed...

Cd into "/usr/src/usr.sbin/sendmail/cf/cf/" and make a new config file suitable for 
your machine and build it.  I used the 'ucbarpa.mc' file as my template.  All I do is 
send mail to and from my own machine w/o any outside connectionsd and the follwoing 
seems to work out for me:

=========================================================================
divert(-1)
include(`../m4/cf.m4')
VERSIONID(`@(#)ucbarpa.mc       8.1 (Berkeley) 6/7/93')
DOMAIN(cs.exposed)dnl
OSTYPE(bsd4.4)dnl
MAILER(local)dnl
MAILER(smtp)dnl
=========================================================================

The /usr/src/usr.sbin/sendmail/cf/README" file tells you what macros to use and what
they do.

Then you have to do a make on it.  If you call your config file "xyzzy.mc" then
you should do a "make xyzzy.cf".  Then "cp xyzzy.cf /etc/sendmail.cf" and you are
in business... I don't even think you have to reboot.


Now if you do NOT have the src09 stuff installed, you can either install it, learn
sendmail, or snarf a sendmail.cf from someone else.  The by far and best way for you
to handle this situation would be to install the src09 stuff and learn how to deal
with it.

Oh yah, you might also wanna look at your /etc/*rc files to make sure you have the
daemon for it running.  I am not sure what it does... probably deals with network
stuff and nothing for local email.  The install script the fact that it will 'puke on 
your carpet without a sendmail.cf' file present in /etc and that you should turn it 
off if you don't want that to happen.

Good luck,

--John
-- 
! John Winans                     Advanced Photon Source  (Controls)    !
! winans@phebos.aps.anl.gov       Argonne National Laboratory, Illinois !
!                                                                       !
!"The large print giveth, and the small print taketh away." - Tom Waits !