*BSD News Article 45257


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!yarrina.connect.com.au!harbinger.cc.monash.edu.au!simtel!news.sprintlink.net!howland.reston.ans.net!Germany.EU.net!zib-berlin.de!news.tu-chemnitz.de!irz401!narcisa.sax.de!not-for-mail
From: j@narcisa.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: smail-3.1.29.1 cannot lock mailboxes
Date: 9 Jun 1995 10:52:39 +0200
Organization: Private U**x site, Dresden.
Lines: 77
Message-ID: <3r924n$5n7@bonnie.tcd-dresden.de>
References: <3r29u3$9vm@Mars.mcs.com> <3r2ron$qap@bell.maths.tcd.ie> <3r313f$oaj@mars.mcs.com>
Reply-To: joerg_wunsch@uriah.heep.sax.de
NNTP-Posting-Host: 192.109.108.139
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Christopher Hilton <chilton@MCS.COM> wrote:

>Thank's for the response, seriously. I've got the latest version of
>sendmail, 8.6.12?, too and given the choice would gladly run it but
>I'm trying to set up a box to get mail via UUCP and without the "bat
>book" this task looks impossible to me. I've already set up smail to
>handle the mail via UUCP.
>
>If you've got a sendmail.cf [...]

Wrong approach.  While i admit that you still need some basic under-
standing of who's who in sendmail.cf, it's generally no longer recomm-
endable to tweak the sendmail.cf itself.  Setup your .mc file instead:

	cd /usr/src/usr.sbin/sendmail/cf
	lpr -p README		# that's the documentation
	cd cf
	vi myown.mc
	make myown.cf
	cp myown.cf /etc/sendmail.cf

(Perhaps we should provide /usr/src/usr.sbin/sendmail/cf even for
users who don't install the full source.)

UUCP feeds should be handled via the mailtertable feature.  This is
how my uriah.mc file looks like:

include(`../m4/cf.m4')
VERSIONID(`$Id: uriah.mc,v 1.6 1995/02/23 18:14:53 j Exp j $')
OSTYPE(bsd4.4)dnl

FEATURE(nodns)dnl
FEATURE(nocanonify)dnl
FEATURE(mailertable)dnl

define(`confMIME_FORMAT_ERRORS', `False')
define(`confMESSAGE_TIMEOUT', `7d/3d')

MAILER(local)dnl
MAILER(smtp)dnl
MAILER(uucp)dnl

Op      noreceipts

Cw      uriah uriah.sax.de
Cw      heep.sax.de

...and this is uriah's /etc/mailertable:

.tcd-dresden.de         uucp-dom:bonnie
tcd-dresden.de          uucp-dom:bonnie
bonnie.heep.sax.de      uucp-dom:bonnie
.heep.sax.de            esmtp:%1
pinky.UUCP              uucp-dom:pinky
.                       uucp-dom:sax


Along with the README, this should give you a starting point.

>P.S. According the smail the permissions on /var/mail should be 1777
>bin bin. That fixed the problem, again, am I making my situation worse
>by doing that?

Worse: yes.  But not worst.  I forgot the argumentation _why_ 1777 for
the mail spool is a security hole.  Read the FreeBSD mailing list
archives on freefall if you're interested.  I think, it's been
discussed about a year ago there.  It's basically some sort of race
condition.

As long as you don't have a public access machine (and hence rather
``trusted users''), you probably don't need to care.

-- 
cheers, J"org                      private:   joerg_wunsch@uriah.heep.sax.de
                                   http://www.sax.de/~joerg/

Never trust an operating system you don't have sources for. ;-)